mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
fix revision dialog brokeness
This commit is contained in:
parent
62fce63952
commit
8d66ca72f1
|
@ -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"); },
|
||||
|
|
Loading…
Reference in New Issue
Block a user