diff options
| author | Julie Lala <jules@okfoc.us> | 2014-11-27 15:21:23 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-11-27 15:21:23 -0500 |
| commit | 150a5ef3ab0dbd8a63009ddad02a6e9df007d824 (patch) | |
| tree | f90eee2a36ee662ac791e85cfcc4dc8af0bdeafa /public/assets/javascripts/ui/lib/ConfirmModal.js | |
| parent | c9325286ba7fcb38166deff8937105789edfb1d2 (diff) | |
tabs/spaces
Diffstat (limited to 'public/assets/javascripts/ui/lib/ConfirmModal.js')
| -rw-r--r-- | public/assets/javascripts/ui/lib/ConfirmModal.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/public/assets/javascripts/ui/lib/ConfirmModal.js b/public/assets/javascripts/ui/lib/ConfirmModal.js index 01720bb..a72b31e 100644 --- a/public/assets/javascripts/ui/lib/ConfirmModal.js +++ b/public/assets/javascripts/ui/lib/ConfirmModal.js @@ -1,24 +1,24 @@ var ConfirmModal = new( ModalFormView.extend({ - el: ".mediaDrawer.confirm", + el: ".mediaDrawer.confirm", - events: { - "click .yes": "advance", - "click .no": "hide", - }, - - confirm: function(question, callback){ - this.$(".question").empty().append(question) - this.callback = callback - this.show() - }, - - advance: function(e){ - e && e.preventDefault() - this.hide() - this.callback && this.callback() - this.callback = null - } + events: { + "click .yes": "advance", + "click .no": "hide", + }, + + confirm: function(question, callback){ + this.$(".question").empty().append(question) + this.callback = callback + this.show() + }, + + advance: function(e){ + e && e.preventDefault() + this.hide() + this.callback && this.callback() + this.callback = null + } }) )
\ No newline at end of file |
