fix revision dialog brokeness
This commit is contained in:
parent
62fce63952
commit
8d66ca72f1
|
@ -116,13 +116,13 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
loadFirstVersion: function() { this.refresh(this.get("post_id"), this.get("first_revision")); },
|
loadFirstVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.first_revision")); },
|
||||||
loadPreviousVersion: function() { this.refresh(this.get("post_id"), this.get("previous_revision")); },
|
loadPreviousVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.previous_revision")); },
|
||||||
loadNextVersion: function() { this.refresh(this.get("post_id"), this.get("next_revision")); },
|
loadNextVersion: function() { this.refresh(this.get("model.post_id"), this.get("model.next_revision")); },
|
||||||
loadLastVersion: function() { this.refresh(this.get("post_id"), this.get("last_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")); },
|
hideVersion: function() { this.hide(this.get("model.post_id"), this.get("model.current_revision")); },
|
||||||
showVersion: function() { this.show(this.get("post_id"), this.get("current_revision")); },
|
showVersion: function() { this.show(this.get("model.post_id"), this.get("model.current_revision")); },
|
||||||
|
|
||||||
displayInline: function() { this.set("viewMode", "inline"); },
|
displayInline: function() { this.set("viewMode", "inline"); },
|
||||||
displaySideBySide: function() { this.set("viewMode", "side_by_side"); },
|
displaySideBySide: function() { this.set("viewMode", "side_by_side"); },
|
||||||
|
|
Loading…
Reference in New Issue