[dw-free] Javascript error in Safari when inbox count updates
[commit: http://hg.dwscoalition.org/dw-free/rev/dd9f380a08de]
http://bugs.dwscoalition.org/show_bug.cgi?id=2039
Fix bug with multiple 'mark all read' buttons causing a JavaScript error.
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2039
Fix bug with multiple 'mark all read' buttons causing a JavaScript error.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/js/esn_inbox.js
-------------------------------------------------------------------------------- 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) { --------------------------------------------------------------------------------