can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r17367: LJSUP-6573: fix wrong behavior when chan...

Committer: dpetrov
LJSUP-6573: fix wrong behavior when changing post visibility multiple times
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2010-09-13 14:32:56 UTC (rev 17366)
+++ trunk/htdocs/js/entry.js	2010-09-14 02:23:31 UTC (rev 17367)
@@ -78,7 +78,9 @@
             input.setAttribute('disabled', 'disabled');
             label.className = "repost_disabled";
             input.checked = false;
-			parentNode.className += " " + linkDisclass;
+			if(parentNode.className.indexOf(linkDisclass) == -1) {
+				parentNode.className += " " + linkDisclass;
+			}
         }
         else {
             input.removeAttribute('disabled');

Tags: can3p, js, livejournal
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