nodebb-plugin-poll
Advanced tools
Comparing version 0.2.11 to 0.2.12
{ | ||
"name": "nodebb-plugin-poll", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "NodeBB Poll Plugin", | ||
@@ -5,0 +5,0 @@ "main": "library.js", |
"use strict"; | ||
/* globals $, app, templates, translator, bootbox, define */ | ||
/* globals $, app, templates, bootbox, define */ | ||
@@ -17,3 +17,3 @@ (function(Poll) { | ||
$.Redactor.opts.plugins.push('poll'); | ||
} else if ($.Redactor.opts.plugins.indexOf('poll') !== -1) { | ||
} else if (!data.composerData.isMain && $.Redactor.opts.plugins.indexOf('poll') !== -1) { | ||
$.Redactor.opts.plugins.splice($.Redactor.opts.plugins.indexOf('poll'), 1); | ||
@@ -45,3 +45,3 @@ } | ||
var button = self.button.add('poll', translated); | ||
self.button.setAwesome('poll', 'fa fa-bar-chart-o'); | ||
self.button.setIcon(button, '<i class="fa fa-bar-chart-o"></i>'); | ||
self.button.addCallback(button, self.poll.onClick); | ||
@@ -48,0 +48,0 @@ }); |
257400
48