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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-2 / +1 lines)
Lines 18-24 function formatstr(str, col) { Link Here
18
18
19
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
19
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
20
$.fn.tabIndex = function () {
20
$.fn.tabIndex = function () {
21
    return $(this).parent().find(this).index() - 1;
21
    return $(this).parent().children('div').index(this);
22
};
22
};
23
$.fn.selectTabByID = function (tabID) {
23
$.fn.selectTabByID = function (tabID) {
24
    $(this).tabs("option", "active", $(tabID).tabIndex());
24
    $(this).tabs("option", "active", $(tabID).tabIndex());
25
- 

Return to bug 14880