blob: b90b3c4451b71e6f7eb9d49f5cd364dd51a4894e (
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
28
|
var ModalView = View.extend({
events: {
"click .close": 'close',
},
show: function(){
$(".mediaDrawer").removeClass("active");
this.$el.addClass("active");
$("body").addClass("noOverflow");
},
hide: function(){
// $(".mediaDrawer, .room1").removeClass("active editing");
this.$el.removeClass("active");
$("body").removeClass("noOverflow");
},
close: function(){
if (window.isModalView) {
window.location.pathname = "/"
}
else {
history.pushState(null, document.title, app.router.originalPath)
this.hide()
}
}
})
|