master
Nick Sergeant 2012-01-25 20:27:07 -05:00
parent dec2a294af
commit ce3ce01ec3
1 changed files with 5 additions and 6 deletions

View File

@ -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',