@@ -, +, @@ --- .../intranet-tmpl/prog/en/js/pages/preferences.js | 10 ++++++++++ .../prog/en/modules/admin/preferences/opac.pref | 4 ++-- .../en/modules/admin/preferences/staff_client.pref | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js @@ -59,6 +59,16 @@ $( document ).ready( function () { mark_modified.call(this); } ); + $(".set_syspref").click(function() { + var s = $(this).attr('data-syspref'); + var v = $(this).attr('data-value'); + // populate the input with the value in data-value + $("#pref_"+s).val(v); + // pass the DOM element to trigger "modified" to enable submit button + mark_modified.call($("#pref_"+s)[0]); + return false; + }); + window.onbeforeunload = function () { if ( KOHA.Preferences.Modified ) { return MSG_MADE_CHANGES; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -59,12 +59,12 @@ OPAC: - 'Display OPAC results using XSLT stylesheet at: ' - pref: OPACXSLTResultsDisplay class: file - - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language' + - '
Options:{langcode} will be replaced with current interface language' - - 'Display OPAC details using XSLT stylesheet at: ' - pref: OPACXSLTDetailsDisplay class: file - - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language' + - '
Options:{langcode} will be replaced with current interface language' - - On pages displayed with XSLT stylesheets on the OPAC, - pref: DisplayOPACiconsXSLT --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref @@ -59,12 +59,12 @@ Staff Client: - 'Display results in the staff client using XSLT stylesheet at: ' - pref: XSLTResultsDisplay class: file - - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language' + - '
Options:{langcode} will be replaced with current interface language' - - 'Display details in the staff client using XSLT stylesheet at: ' - pref: XSLTDetailsDisplay class: file - - '
Options:
- leave empty for "no xslt"
- enter "default" for the default one
- put a path to define a xslt file
- put an URL for an external specific stylesheet.
{langcode} will be replaced with current interface language' + - '
Options:{langcode} will be replaced with current interface language' - - Use the Yahoo UI libraries - pref: yuipath --