Lines 601-607
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
601 |
$( sel ).on( event, function (e) { |
601 |
$( sel ).on( event, function (e) { |
602 |
e.preventDefault(); |
602 |
e.preventDefault(); |
603 |
handler( e, Preferences.user[pref] ); |
603 |
handler( e, Preferences.user[pref] ); |
604 |
Preferences.Save( [% USER_INFO.0.borrowernumber %] ); |
604 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
605 |
showPreference(pref); |
605 |
showPreference(pref); |
606 |
} ); |
606 |
} ); |
607 |
} |
607 |
} |
Lines 626-632
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
626 |
$( document ).on( 'change', 'input.search-toggle-server', function() { |
626 |
$( document ).on( 'change', 'input.search-toggle-server', function() { |
627 |
var server_id = $( this ).closest('li').data('server-id'); |
627 |
var server_id = $( this ).closest('li').data('server-id'); |
628 |
Preferences.user.selected_search_targets[server_id] = this.checked; |
628 |
Preferences.user.selected_search_targets[server_id] = this.checked; |
629 |
Preferences.Save( [% USER_INFO.0.borrowernumber %] ); |
629 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
630 |
} ); |
630 |
} ); |
631 |
break; |
631 |
break; |
632 |
} |
632 |
} |
Lines 664-670
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
664 |
delete Preferences.user.macros[name]; |
664 |
delete Preferences.user.macros[name]; |
665 |
} |
665 |
} |
666 |
|
666 |
|
667 |
Preferences.Save( [% USER_INFO.0.borrowernumber %] ); |
667 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
668 |
} |
668 |
} |
669 |
|
669 |
|
670 |
function showSavedMacros( macros ) { |
670 |
function showSavedMacros( macros ) { |
Lines 966-972
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
966 |
$( '#switch-editor' ).click( function() { |
966 |
$( '#switch-editor' ).click( function() { |
967 |
if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return; |
967 |
if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return; |
968 |
|
968 |
|
969 |
$.cookie( 'catalogue_editor_[% USER_INFO.0.borrowernumber %]', 'basic', { expires: 365, path: '/' } ); |
969 |
$.cookie( 'catalogue_editor_[% USER_INFO.borrowernumber %]', 'basic', { expires: 365, path: '/' } ); |
970 |
|
970 |
|
971 |
if ( state.backend == 'catalog' ) { |
971 |
if ( state.backend == 'catalog' ) { |
972 |
window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID; |
972 |
window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID; |
Lines 1072-1078
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
1072 |
} ); |
1072 |
} ); |
1073 |
|
1073 |
|
1074 |
// Start editor |
1074 |
// Start editor |
1075 |
Preferences.Load( [% USER_INFO.0.borrowernumber || 0 %] ); |
1075 |
Preferences.Load( [% USER_INFO.borrowernumber || 0 %] ); |
1076 |
displayPreferences(editor); |
1076 |
displayPreferences(editor); |
1077 |
makeAuthorisedValueWidgets( '' ); |
1077 |
makeAuthorisedValueWidgets( '' ); |
1078 |
Search.Init( { |
1078 |
Search.Init( { |