From 8d66ca72f12335d18bf5bca17c655c321dca17ff Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 16 Aug 2015 11:13:19 +1000 Subject: [PATCH] fix revision dialog brokeness --- .../javascripts/discourse/controllers/history.js.es6 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/history.js.es6 b/app/assets/javascripts/discourse/controllers/history.js.es6 index bd64800c682..4a04abb1af7 100644 --- a/app/assets/javascripts/discourse/controllers/history.js.es6 +++ b/app/assets/javascripts/discourse/controllers/history.js.es6 @@ -116,13 +116,13 @@ export default Ember.Controller.extend(ModalFunctionality, { }, actions: { - loadFirstVersion: function() { this.refresh(this.get("post_id"), this.get("first_revision")); }, - loadPreviousVersion: function() { this.refresh(this.get("post_id"), this.get("previous_revision")); }, - loadNextVersion: function() { this.refresh(this.get("post_id"), this.get("next_revision")); }, - loadLastVersion: function() { this.refresh(this.get("post_id"), this.get("last_revision")); }, + loadFirstVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.first_revision")); }, + loadPreviousVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.previous_revision")); }, + loadNextVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.next_revision")); }, + loadLastVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.last_revision")); }, - hideVersion: function() { this.hide(this.get("post_id"), this.get("current_revision")); }, - showVersion: function() { this.show(this.get("post_id"), this.get("current_revision")); }, + hideVersion: function() { this.hide(this.get("model.post_id"), this.get("model.current_revision")); }, + showVersion: function() { this.show(this.get("model.post_id"), this.get("model.current_revision")); }, displayInline: function() { this.set("viewMode", "inline"); }, displaySideBySide: function() { this.set("viewMode", "side_by_side"); },