Fix close buttons
parent
8b847dc2fb
commit
dec2a294af
|
@ -16,7 +16,6 @@
|
|||
this.keyboardShortcuts();
|
||||
this.inFieldLabels();
|
||||
|
||||
// Init snipts
|
||||
if (this.$snipts.length) {
|
||||
SniptListView = Snipt.Views.SniptListView;
|
||||
SniptList = new SniptListView({ 'snipts': this.$snipts });
|
||||
|
@ -28,13 +27,17 @@
|
|||
});
|
||||
}
|
||||
|
||||
// Search
|
||||
this.$search_query.focus(function() {
|
||||
if (window.$selected) {
|
||||
$selected.trigger('deselect');
|
||||
}
|
||||
});
|
||||
|
||||
$('div.modal a.close').click(function() {
|
||||
$(this).parent().parent().modal('hide');
|
||||
return false;
|
||||
});
|
||||
|
||||
},
|
||||
events: {
|
||||
'showKeyboardShortcuts': 'showKeyboardShortcuts'
|
||||
|
|
|
@ -29,10 +29,6 @@
|
|||
this.$copyModal.on('hidden', function(e) {
|
||||
$(this).parent().trigger('copyClose');
|
||||
});
|
||||
this.$copyModalClose.click(function() {
|
||||
$(this).parent().parent().modal('hide');
|
||||
return false;
|
||||
});
|
||||
},
|
||||
events: {
|
||||
'click a.copy': 'copyFromClick',
|
||||
|
|
Loading…
Reference in New Issue