fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12715] fix typo and add function to toggle checkboxe


From: Sigurd Nes
Subject: [Fmsystem-commits] [12715] fix typo and add function to toggle checkboxes
Date: Fri, 06 Feb 2015 19:18:21 +0000

Revision: 12715
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12715
Author:   sigurdne
Date:     2015-02-06 19:18:20 +0000 (Fri, 06 Feb 2015)
Log Message:
-----------
fix typo and add function to toggle checkboxes

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/js/jquery/common.js

Modified: branches/dev-syncromind/phpgwapi/js/jquery/common.js
===================================================================
--- branches/dev-syncromind/phpgwapi/js/jquery/common.js        2015-02-06 
19:16:03 UTC (rev 12714)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js        2015-02-06 
19:18:20 UTC (rev 12715)
@@ -95,7 +95,7 @@
        return '<a id="' + link + '" onclick="searchData(this.id);">' + name + 
'</a>';
 };
 
-JqueryPortico.formatCheck = function(key, oDakta) {
+JqueryPortico.formatCheck = function(key, oData) {
        var checked = '';
        var hidden = '';
        if(oData['responsible_item'])
@@ -361,4 +361,20 @@
                var oArgs = {lightbox:1};
                var strURL = phpGWLink('login.php', oArgs);
                TINY.box.show({iframe:strURL, 
boxid:'frameless',width:$(window).width(),height:400,fixed:false,maskid:'darkmask',maskopacity:40,
 mask:true, animate:true, close: false,closejs:false});
-       };
\ No newline at end of file
+       };
+
+       JqueryPortico.checkAll = function(myclass)
+       {
+               $("." + myclass).each(function()
+               {
+                       if($(this).prop("checked"))
+                       {
+                               $(this).prop("checked", false);
+                       }
+                       else
+                       {
+                               $(this).prop("checked", true);
+                       }
+               });
+       }
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]