mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
/*global Mousetrap:true */
|
|
|
|
export default Ember.View.extend({
|
|
classNames: ['customize'],
|
|
|
|
_init: function() {
|
|
var controller = this.get('controller');
|
|
Mousetrap.bindGlobal('mod+s', function() {
|
|
controller.send("save");
|
|
return false;
|
|
});
|
|
}.on("didInsertElement"),
|
|
|
|
_cleanUp: function() {
|
|
Mousetrap.unbindGlobal('mod+s');
|
|
}.on("willDestroyElement")
|
|
|
|
});
|