mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-05 07:55 am

[dw-free] Prevent errors when tracking using AJAX (unverified)

[commit: http://hg.dwscoalition.org/dw-free/rev/24f476313fcb]

http://bugs.dwscoalition.org/show_bug.cgi?id=655

Fix auth error when tracking via AJAX.

This patch was pulled from the LiveJournal.com repository.

Patch by [staff profile] denise.

Files modified:
  • htdocs/js/esn.js
--------------------------------------------------------------------------------
diff -r a3b2057163f1 -r 24f476313fcb htdocs/js/esn.js
--- a/htdocs/js/esn.js	Sun Apr 05 07:50:10 2009 +0000
+++ b/htdocs/js/esn.js	Sun Apr 05 07:55:34 2009 +0000
@@ -247,10 +247,6 @@ ESN.toggleSubscription = function (subIn
                 if (info.newentry_subid)
                     DOM.setElementAttribute(btn, "lj_newentry_subid", info.newentry_subid);
 
-                ["journalid", "arg1", "arg2", "etypeid"].forEach(function (param) {
-                    DOM.setElementAttribute(btn, "lj_" + param, 0);
-                });
-
                 DOM.setElementAttribute(btn, "title", 'Untrack This');
 
                 // update subthread tracking icons
@@ -264,10 +260,6 @@ ESN.toggleSubscription = function (subIn
                     DOM.setElementAttribute(btn, "lj_subid", 0);
                 else if (info["event_class"] == "LJ::Event::JournalNewEntry")
                     DOM.setElementAttribute(btn, "lj_newentry_subid", 0);
-
-                ["journalid", "arg1", "arg2", "etypeid"].forEach(function (param) {
-                    DOM.setElementAttribute(btn, "lj_" + param, info[param]);
-                });
 
                 DOM.setElementAttribute(btn, "title", 'Track This');
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org