blob: ab3634e7020d675fa460b40b1c30c8bc6623692d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
var ErrorModal = new( ModalFormView.extend({
el: ".mediaDrawer.error",
events: {
"click .ok": "advance",
"click .close": "advance",
},
alert: function(message, callback){
this.$(".errorList").empty().append(message)
this.callback = callback
this.show()
this.$(".ok").focus()
},
advance: function(e){
e && e.preventDefault()
this.hide()
this.callback && this.callback()
this.callback = null
}
}))
|