View | Details | Raw Unified | Return to bug 8163
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (+10 lines)
Lines 59-64 $( document ).ready( function () { Link Here
59
        mark_modified.call(this);
59
        mark_modified.call(this);
60
    } );
60
    } );
61
61
62
    $(".set_syspref").click(function() {
63
        var s = $(this).attr('data-syspref');
64
        var v = $(this).attr('data-value');
65
        // populate the input with the value in data-value
66
        $("#pref_"+s).val(v);
67
        // pass the DOM element to trigger "modified" to enable submit button
68
        mark_modified.call($("#pref_"+s)[0]);
69
        return false;
70
    });
71
62
    window.onbeforeunload = function () {
72
    window.onbeforeunload = function () {
63
        if ( KOHA.Preferences.Modified ) {
73
        if ( KOHA.Preferences.Modified ) {
64
            return MSG_MADE_CHANGES;
74
            return MSG_MADE_CHANGES;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-2 / +2 lines)
Lines 59-70 OPAC: Link Here
59
            - 'Display OPAC results using XSLT stylesheet at: '
59
            - 'Display OPAC results using XSLT stylesheet at: '
60
            - pref: OPACXSLTResultsDisplay
60
            - pref: OPACXSLTResultsDisplay
61
              class: file
61
              class: file
62
            - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language'
62
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="OPACXSLTResultsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="OPACXSLTResultsDisplay" data-value="default">default</a>" for the default one</li><li> put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
63
        -
63
        -
64
            - 'Display OPAC details using XSLT stylesheet at: '
64
            - 'Display OPAC details using XSLT stylesheet at: '
65
            - pref: OPACXSLTDetailsDisplay
65
            - pref: OPACXSLTDetailsDisplay
66
              class: file
66
              class: file
67
            - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language'
67
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="OPACXSLTDetailsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="OPACXSLTDetailsDisplay" data-value="default">default</a>" for the default one</li><li>put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
68
        -
68
        -
69
            - On pages displayed with XSLT stylesheets on the OPAC,
69
            - On pages displayed with XSLT stylesheets on the OPAC,
70
            - pref: DisplayOPACiconsXSLT
70
            - pref: DisplayOPACiconsXSLT
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (-3 / +2 lines)
Lines 59-70 Staff Client: Link Here
59
            - 'Display results in the staff client using XSLT stylesheet at: '
59
            - 'Display results in the staff client using XSLT stylesheet at: '
60
            - pref: XSLTResultsDisplay
60
            - pref: XSLTResultsDisplay
61
              class: file
61
              class: file
62
            - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language'
62
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="XSLTResultsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="XSLTResultsDisplay" data-value="default">default</a>" for the default one</li><li> put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
63
        -
63
        -
64
            - 'Display details in the staff client using XSLT stylesheet at: '
64
            - 'Display details in the staff client using XSLT stylesheet at: '
65
            - pref: XSLTDetailsDisplay
65
            - pref: XSLTDetailsDisplay
66
              class: file
66
              class: file
67
            - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language'
67
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="XSLTDetailsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="XSLTDetailsDisplay" data-value="default">default</a>" for the default one</li><li>put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
68
        -
68
        -
69
            - Use the Yahoo UI libraries
69
            - Use the Yahoo UI libraries
70
            - pref: yuipath
70
            - pref: yuipath
71
- 

Return to bug 8163