can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20236: LJSUP-9819: Notes text of checkbox "Stic...

Committer: dpetrov
LJSUP-9819: Notes text of checkbox "Stick this post to the top" does not change when you change value in the settings "Post to"
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2011-10-05 11:09:59 UTC (rev 20235)
+++ trunk/htdocs/js/entry.js	2011-10-06 07:02:44 UTC (rev 20236)
@@ -83,6 +83,9 @@
 	}
 
 	stickyCheckbox.attr('disabled', !journal.can_create_sticky);
+	if (!journal.can_post_delayed) {
+		stickyCheckbox.attr('checked', false);
+	}
 	stickyLabel.html(journal.is_replace_sticky ? 
 			Site.ml_text['entryform.sticky_replace.edit'] :
 			Site.ml_text['entryform.sticky.edit']);

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