diff --git a/snipt/media/cache/snipt.js b/snipt/media/cache/snipt.js index 15067c3..a849295 100644 --- a/snipt/media/cache/snipt.js +++ b/snipt/media/cache/snipt.js @@ -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',