Fix bug with multiple 'mark all read' buttons causing a JavaScript
error.
Patch by afuna.
diffs (13 lines):
diff -r 7146131df1fb -r dd9f380a08de htdocs/js/esn_inbox.js
--- a/htdocs/js/esn_inbox.js Tue Nov 03 01:54:20 2009 +0000
+++ b/htdocs/js/esn_inbox.js Tue Nov 03 02:00:48 2009 +0000
@@ -380,8 +380,8 @@ ESN_Inbox.finishedUpdate = function (inf
// 2 instances of action buttons with suffix 1 and 2
for (var i=1; i<=2; i++) {
$(folder + "_MarkRead_" + i).disabled = unread_count ? false : true;
+ $(folder + "_MarkAllRead_" + i).disabled = unread_count ? false : true;
}
- $(folder + "_MarkAllRead").disabled = unread_count ? false : true;
};
ESN_Inbox.refresh_count = function(name, count) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog