From 26a404f4d03c0d36aec550ce016d4175317cc851 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 14 Aug 2014 14:26:40 -0400 Subject: [PATCH] FIX: confusing UI when clicking Delete All Posts button --- app/assets/javascripts/admin/models/admin_user.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/assets/javascripts/admin/models/admin_user.js b/app/assets/javascripts/admin/models/admin_user.js index 5cf50105112..c2280eeb761 100644 --- a/app/assets/javascripts/admin/models/admin_user.js +++ b/app/assets/javascripts/admin/models/admin_user.js @@ -68,16 +68,12 @@ Discourse.AdminUser = Discourse.User.extend({ }.property('can_delete_all_posts'), deleteAllPosts: function() { - this.set('can_delete_all_posts', false); var user = this; var message = I18n.t('admin.user.delete_all_posts_confirm', {posts: user.get('post_count'), topics: user.get('topic_count')}); var buttons = [{ "label": I18n.t("composer.cancel"), "class": "cancel-inline", - "link": true, - "callback": function() { - user.set('can_delete_all_posts', true); - } + "link": true }, { "label": ' ' + I18n.t("admin.user.delete_all_posts"), "class": "btn btn-danger",