From a650593f893d8b54da183da757533484d1380eab Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 14 Jun 2013 17:07:01 -0400 Subject: [PATCH] Add classes to all post menu buttons --- .../javascripts/discourse/views/post_menu_view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/views/post_menu_view.js b/app/assets/javascripts/discourse/views/post_menu_view.js index 4a84a07593f..366c66077d2 100644 --- a/app/assets/javascripts/discourse/views/post_menu_view.js +++ b/app/assets/javascripts/discourse/views/post_menu_view.js @@ -62,7 +62,7 @@ Discourse.PostMenuView = Discourse.View.extend({ if (post.get('post_number') === 1 && this.get('controller.content.can_delete')) { buffer.push(""); + "\" data-action=\"deleteTopic\" class='delete'>"); return; } // Show the correct button (undo or delete) @@ -109,7 +109,7 @@ Discourse.PostMenuView = Discourse.View.extend({ if (!this.present('post.flagsAvailable')) return; buffer.push(""); + "\" data-action=\"flag\" class='flag'>"); }, clickFlag: function() { @@ -121,7 +121,7 @@ Discourse.PostMenuView = Discourse.View.extend({ if (!post.get('can_edit')) return; buffer.push(""); + "\" data-action=\"edit\" class='edit'>"); }, clickEdit: function() { @@ -132,7 +132,7 @@ Discourse.PostMenuView = Discourse.View.extend({ renderShare: function(post, buffer) { buffer.push(""); + "\" data-share-url=\"" + (post.get('shareUrl')) + "\" class='share'>"); }, // Reply button @@ -158,7 +158,7 @@ Discourse.PostMenuView = Discourse.View.extend({ } buffer.push(""); + "\" data-action=\"bookmark\" class='bookmark'>"); }, clickBookmark: function() {