Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22647: LJSUP-12121: Update form toolbar to hand...

Committer: anazarov
LJSUP-12121: Update form toolbar to handle custom buttons.
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2012-08-15 07:54:17 UTC (rev 22646)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2012-08-15 08:16:42 UTC (rev 22647)
@@ -1410,6 +1410,10 @@
 			(function() {
 				var button = 'LJPollLink';
 
+				if (!LJ.pageVar('remoteUser', true)) {
+					return;
+				}
+
 				LiveJournal.register_hook('poll_response', function(ljData) {
 					var poll = new Poll(ljData), // Poll.js
 						content = "<div class='lj-poll-inner lj-rtebox-inner'>" + poll.outputHTML() + '</div>',

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