master
parent
dec2a294af
commit
ce3ce01ec3
|
@ -942,7 +942,6 @@ jQuery(function($) {
|
|||
this.keyboardShortcuts();
|
||||
this.inFieldLabels();
|
||||
|
||||
// Init snipts
|
||||
if (this.$snipts.length) {
|
||||
SniptListView = Snipt.Views.SniptListView;
|
||||
SniptList = new SniptListView({ 'snipts': this.$snipts });
|
||||
|
@ -954,13 +953,17 @@ jQuery(function($) {
|
|||
});
|
||||
}
|
||||
|
||||
// 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'
|
||||
|
@ -1032,10 +1035,6 @@ jQuery(function($) {
|
|||
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