diff --git a/app/assets/javascripts/discourse/views/buttons/clear_pin_button.js b/app/assets/javascripts/discourse/views/buttons/clear_pin_button.js deleted file mode 100644 index 8f26c569ee7..00000000000 --- a/app/assets/javascripts/discourse/views/buttons/clear_pin_button.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - A button for clearing a pinned topic - - @class ClearPinButton - @extends Discourse.ButtonView - @namespace Discourse - @module Discourse -**/ -Discourse.ClearPinButton = Discourse.ButtonView.extend({ - textKey: 'topic.clear_pin.title', - helpKey: 'topic.clear_pin.help', - classNameBindings: ['unpinned'], - - // Hide the button if it becomes unpinned - unpinned: function() { - // When not logged in don't show the button - if (!Discourse.User.current()) return 'hidden'; - return this.get('controller.pinned') ? null : 'hidden'; - }.property('controller.pinned'), - - click: function() { - this.get('controller').send('clearPin'); - }, - - renderIcon: function(buffer) { - buffer.push(""); - } -}); - diff --git a/app/assets/javascripts/discourse/views/buttons/dropdown_button_view.js b/app/assets/javascripts/discourse/views/buttons/dropdown_button_view.js index 25ab5f59bdd..9fcf28cf663 100644 --- a/app/assets/javascripts/discourse/views/buttons/dropdown_button_view.js +++ b/app/assets/javascripts/discourse/views/buttons/dropdown_button_view.js @@ -29,6 +29,8 @@ Discourse.DropdownButtonView = Discourse.View.extend({ render: function(buffer) { var self = this; + var descriptionKey = self.get('descriptionKey') || 'description'; + buffer.push("

" + self.get('title') + "

"); buffer.push("