Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[js] r282: LJSUP-5467: Inbox: multi-message delete ...

Committer: pkornilov
LJSUP-5467: Inbox: multi-message delete is not working.
U   trunk/checkallbutton.js
Modified: trunk/checkallbutton.js
===================================================================
--- trunk/checkallbutton.js	2010-01-21 12:42:03 UTC (rev 281)
+++ trunk/checkallbutton.js	2010-02-05 06:16:39 UTC (rev 282)
@@ -33,12 +33,9 @@
     if (!this.button || !this.className)
       return;
 
-    var parent = this.parent;
-    if (!parent)
-      parent = document;
+    var parent = this.parent || document;
 
-    var viewObjects = parent.getElementsByTagName("*");
-    var boxes = DOM.filterElementsByClassName(viewObjects, this.className) || [];
+    var boxes = jQuery('.' + this.className, parent);
 
     var checkallBox = this.button;
 
@@ -51,7 +48,7 @@
       if (box.checked == checkallBox.checked) continue;
       if (box.disabled) continue;
       
-      box.checked = checkallBox.checked;
+      jQuery(box).trigger('click')
     }
   }
 });

Tags: js, lusever
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments