Deselect the check all checkboxes when loading the page and when 
deleting items.

        Patch by afuna. 

diffs (27 lines):

diff -r 067c3657fffa -r 3f72ba1db1b5 htdocs/inbox/index.bml
--- a/htdocs/inbox/index.bml    Sun Jul 05 10:14:03 2009 +0000
+++ b/htdocs/inbox/index.bml    Sun Jul 05 10:17:26 2009 +0000
@@ -210,6 +210,7 @@ function setup (e) {
                   "button": $(name + "_CheckAll_" + i),
                   "parent": tableview.getView()
             });
+            checkallButton.button.checked = false;
         }
     }
 
diff -r 067c3657fffa -r 3f72ba1db1b5 htdocs/js/esn_inbox.js
--- a/htdocs/js/esn_inbox.js    Sun Jul 05 10:14:03 2009 +0000
+++ b/htdocs/js/esn_inbox.js    Sun Jul 05 10:17:26 2009 +0000
@@ -190,6 +190,12 @@ ESN_Inbox.deleteItems = function (evt, f
     if (has_bookmark && msg && !confirm(msg)) return false;
 
     ESN_Inbox.updateItems('delete', evt, folder, '');
+
+    // uncheck the checkbox after deleting anything
+    for (var i=1; i<=2; i++) {
+        $(folder + "_CheckAll_" + i).checked = false;
+    }
+
     return false;
 };
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to