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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (+12 lines)
Lines 59-64 $( document ).ready( function () { Link Here
59
        mark_modified.call(this);
59
        mark_modified.call(this);
60
    } );
60
    } );
61
61
62
    $(".default").click(function(){
63
        var action = $(this).attr("id").split("_");
64
        $("#pref_"+action[1]).attr("value","default");
65
        return false;
66
    });
67
68
    $(".leaveempty").click(function(){
69
        var action = $(this).attr("id").split("_");
70
        $("#pref_"+action[1]).removeAttr("value");
71
        return false;
72
    });
73
62
    window.onbeforeunload = function () {
74
    window.onbeforeunload = function () {
63
        if ( KOHA.Preferences.Modified ) {
75
        if ( KOHA.Preferences.Modified ) {
64
            return MSG_MADE_CHANGES;
76
            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="leaveempty" id="empty_OPACXSLTResultsDisplay">leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="default" id="default_OPACXSLTResultsDisplay">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="leaveempty" id="empty_OPACXSLTDetailsDisplay">leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="default" id="default_OPACXSLTDetailsDisplay">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 54-65 Staff Client: Link Here
54
            - 'Display results in the staff client using XSLT stylesheet at: '
54
            - 'Display results in the staff client using XSLT stylesheet at: '
55
            - pref: XSLTResultsDisplay
55
            - pref: XSLTResultsDisplay
56
              class: file
56
              class: file
57
            - '<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'
57
            - '<br />Options:<ul><li><a href="#" class="leaveempty" id="empty_XSLTResultsDisplay">leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="default" id="default_XSLTResultsDisplay">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'
58
        -
58
        -
59
            - 'Display details in the staff client using XSLT stylesheet at: '
59
            - 'Display details in the staff client using XSLT stylesheet at: '
60
            - pref: XSLTDetailsDisplay
60
            - pref: XSLTDetailsDisplay
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="leaveempty" id="empty_XSLTDetailsDisplay">leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="default" id="default_XSLTDetailsDisplay">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
            - Use the Yahoo UI libraries
64
            - Use the Yahoo UI libraries
65
            - pref: yuipath
65
            - pref: yuipath
66
- 

Return to bug 8163