From ee286cc2700332cf8b389889a5c750844642de51 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 Oct 2013 16:18:16 +1000 Subject: [PATCH] fix inability to save posts when navigated away, oh my ... what a mess, there must be a better way --- .../javascripts/discourse/controllers/composer_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/composer_controller.js b/app/assets/javascripts/discourse/controllers/composer_controller.js index 25158965a..f9f114b0b 100644 --- a/app/assets/javascripts/discourse/controllers/composer_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_controller.js @@ -109,7 +109,7 @@ Discourse.ComposerController = Discourse.Controller.extend({ "label": I18n.t("composer.reply_original") + "
" + this.get('model.topic.title') + "
", "class": "btn-primary btn-reply-on-original", "callback": function(){ - composerController.save(true); + composerController._actions.save.apply(composerController, [true]); } });