@@ -, +, @@ --- .../prog/en/includes/cateditor-ui.inc | 66 +----------- .../prog/en/modules/cataloguing/editor.tt | 120 -------------------- 2 files changed, 1 insertions(+), 185 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -105,43 +105,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr event.preventDefault(); } ); - - shortcut.add( 'alt+ctrl+k', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-keywords' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+a', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-author' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+i', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-isbn' ).focus(); - - return false; - } ); - - shortcut.add( 'alt+ctrl+t', function(event) { - if ( Search.IsAvailable() ) $( '#search-by-title' ).focus(); - - return false; - } ); - - $('#quicksearch .search-box').each( function() { - shortcut.add( 'enter', $.proxy( function() { - var q = this.value; - if (!q) return false; - - if ( Search.Start( z3950Targets, $(this).data('qualifier') + q, 20 ) ) { - showResultsBox(); - } - - return false; - }, this), { target: this, type: 'keypress' } ); - } ); } // Record loading @@ -756,23 +719,11 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr } } ); - $( '#show-advanced-search' ).click( function() { - showAdvancedSearch(); - - return false; - } ); - - $('#advanced-search').submit( function() { - startAdvancedSearch(); - - return false; - } ); - // Key bindings bindGlobalKeys(); // Setup UI - $("#advanced-search-ui, #search-results-ui, #macro-ui").each( function() { + $("#macro-ui").each( function() { $(this).modal({ show: false }).css({ marginLeft: function() { return -($(this).width() / 2); @@ -780,15 +731,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr }); } ); - var $quicksearch = $('#quicksearch fieldset'); - $('