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>',