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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt (-1 / +9 lines)
Lines 29-34 Link Here
29
                    .addClass( "ui-widget-header ui-corner-all" )
29
                    .addClass( "ui-widget-header ui-corner-all" )
30
                    .end()
30
                    .end()
31
            .find( ".plugindesc" );
31
            .find( ".plugindesc" );
32
        $(".save-all").on("click",function(e){
33
            e.preventDefault();
34
            yesimeant();
35
        });
36
        $(".force_reload").on("click",function(e){
37
            e.preventDefault();
38
            window.location.reload(true);
39
        });
32
    });
40
    });
33
41
34
    function yesimeant() {
42
    function yesimeant() {
Lines 93-99 Link Here
93
                <legend>Intranet</legend>
101
                <legend>Intranet</legend>
94
                [% PROCESS pluginlist plugins=INTRApluginlist type='intranet' %]
102
                [% PROCESS pluginlist plugins=INTRApluginlist type='intranet' %]
95
            </fieldset>
103
            </fieldset>
96
            <fieldset class="action"><button class="save-all submit" onclick="yesimeant();return false;" type="submit">Save configuration</button> <a href="#" onclick="window.location.reload(true);" class="cancel">Cancel</a></fieldset>
104
            <fieldset class="action"><button class="save-all submit" type="submit">Save configuration</button> <a href="/cgi-bin/koha/admin/didyoumean.pl" class="force_reload cancel">Cancel</a></fieldset>
97
        </form>
105
        </form>
98
106
99
        </div>
107
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-2 / +7 lines)
Lines 19-24 $(document).ready(function() { Link Here
19
        ],
19
        ],
20
        "sPaginationType": "four_button"
20
        "sPaginationType": "four_button"
21
    }));
21
    }));
22
    $("#select_display").on("change",function(){
23
        var checked = $(this).prop("checked") ? 1: 0;
24
        $.cookie('marctagstructure_selectdisplay', checked);
25
        this.form.submit();
26
    });
22
});
27
});
23
28
24
//]]>
29
//]]>
Lines 174-182 $(document).ready(function() { Link Here
174
    <input type="submit" value="Search" />
179
    <input type="submit" value="Search" />
175
<p>        <label for="select_display">Display only used tags/subfields</label>
180
<p>        <label for="select_display">Display only used tags/subfields</label>
176
        [% IF ( select_display ) %]
181
        [% IF ( select_display ) %]
177
            <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked"  onchange="$.cookie('marctagstructure_selectdisplay', 0); this.form.submit();" />
182
            <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" />
178
        [% ELSE %]
183
        [% ELSE %]
179
            <input type="checkbox" name="select_display" id="select_display" value="True" onchange="$.cookie('marctagstructure_selectdisplay', 1); this.form.submit();" />
184
            <input type="checkbox" name="select_display" id="select_display" value="True" />
180
        [% END %]</p>
185
        [% END %]</p>
181
</fieldset>
186
</fieldset>
182
</form>
187
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-1 / +5 lines)
Lines 25-30 Link Here
25
            countSelected: _("# of % selected"),
25
            countSelected: _("# of % selected"),
26
            noMatchesFound: _("No matches found")
26
            noMatchesFound: _("No matches found")
27
        } );
27
        } );
28
        $(".force_reload").on("click",function(e){
29
            e.preventDefault();
30
            window.location.reload(true);
31
        });
28
    });
32
    });
29
    // This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw
33
    // This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw
30
    var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
34
    var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
Lines 179-185 Link Here
179
            [% IF ( loop.last ) %]</tbody></table>[% END %]
183
            [% IF ( loop.last ) %]</tbody></table>[% END %]
180
            [% END %]
184
            [% END %]
181
        [% END %]
185
        [% END %]
182
        <fieldset class="action"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button> <a href="#" onclick="window.location.reload(true);" class="cancel">Cancel</a></fieldset>
186
        <fieldset class="action"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button> <a href="/cgi-bin/koha/admin/preferences.pl" class="force_reload cancel">Cancel</a></fieldset>
183
    </form>
187
    </form>
184
    </div>
188
    </div>
185
    [% END %]
189
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +5 lines)
Lines 101-106 $(document).ready(function() { Link Here
101
            $("#default-circulation-rules tr:last td:eq(1) select").prop('disabled', true);
101
            $("#default-circulation-rules tr:last td:eq(1) select").prop('disabled', true);
102
            return false;
102
            return false;
103
        });
103
        });
104
        $(".clear_edit").on("click",function(e){
105
            e.preventDefault();
106
            clear_edit();
107
        });
104
});
108
});
105
//]]>
109
//]]>
106
</script>
110
</script>
Lines 347-353 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
347
                    <td class="actions">
351
                    <td class="actions">
348
                        <input type="hidden" name="branch" value="[% current_branch %]"/>
352
                        <input type="hidden" name="branch" value="[% current_branch %]"/>
349
                        <button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button>
353
                        <button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button>
350
                        <button name="cancel" onclick="clear_edit();return false;" class="btn btn-mini"><i class="fa fa-undo"></i> Clear</button>
354
                        <button name="cancel" class="clear_edit btn btn-mini"><i class="fa fa-undo"></i> Clear</button>
351
                    </td>
355
                    </td>
352
                </tr>
356
                </tr>
353
                <tfoot>
357
                <tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt (-1 / +1 lines)
Lines 90-96 Link Here
90
                        <fieldset class="action">
90
                        <fieldset class="action">
91
                            <input type="submit" id="submit_save" value="Submit" />
91
                            <input type="submit" id="submit_save" value="Submit" />
92
                            <input type="submit" value="Submit" id="submit_update" />
92
                            <input type="submit" value="Submit" id="submit_update" />
93
                            <a class="cancel" id="cancel" href="#" onclick="cancel_edit()">Cancel</a>
93
                            <a class="cancel cancel_edit" id="cancel" href="sms_providers.pl">Cancel</a>
94
                        </fieldset>
94
                        </fieldset>
95
                    </form>
95
                    </form>
96
                </div>
96
                </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-1 / +4 lines)
Lines 51-56 $(document).ready(function(){ Link Here
51
    $("body").on("change",".disable_transport_cost",function(){
51
    $("body").on("change",".disable_transport_cost",function(){
52
        disable_transport_cost_chg(this);
52
        disable_transport_cost_chg(this);
53
    });
53
    });
54
    $("#cost_matrix_form").on("submit",function(){
55
        return form_submit(this);
56
    });
54
})
57
})
55
//]]>
58
//]]>
56
</script>
59
</script>
Lines 88-94 $(document).ready(function(){ Link Here
88
        </ul>
91
        </ul>
89
    </div>[% END %]
92
    </div>[% END %]
90
93
91
        <form method="post" action="?" onsubmit="return form_submit(this);">
94
        <form method="post" action="/cgi-bin/koha/admin/transport-cost-matrix.pl" id="cost_matrix_form">
92
            <input type="hidden" name="op" value="set-cost-matrix" />
95
            <input type="hidden" name="op" value="set-cost-matrix" />
93
            <fieldset id="transport-cost-matrix">
96
            <fieldset id="transport-cost-matrix">
94
                <div class="help">
97
                <div class="help">
(-)a/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js (-2 / +5 lines)
Lines 20-25 $(document).ready(function() { Link Here
20
            delete_provider( providerid );
20
            delete_provider( providerid );
21
        }
21
        }
22
    });
22
    });
23
    $(".cancel_edit").on("click",function(e){
24
        e.preventDefault();
25
        cancel_edit();
26
    });
23
});
27
});
24
28
25
function clear_form(){
29
function clear_form(){
Lines 70-73 function delete_provider( id, users ) { Link Here
70
        $("#id").val( id );
74
        $("#id").val( id );
71
        $("#sms_form").submit();
75
        $("#sms_form").submit();
72
    }
76
    }
73
}
77
}
74
- 

Return to bug 17012