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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js (-6 / +5 lines)
Lines 40-49 function hideColumn(num) { Link Here
40
    if( !found ){
40
    if( !found ){
41
        valCookie.push(hide);
41
        valCookie.push(hide);
42
        var cookieString = valCookie.join("/");
42
        var cookieString = valCookie.join("/");
43
        $.cookie("showColumns", cookieString, { expires : date });
43
        $.cookie("showColumns", cookieString, { expires : date, path: '/' });
44
    }
44
    }
45
  } else {
45
  } else {
46
        $.cookie("showColumns", hide, { expires : date });
46
        $.cookie("showColumns", hide, { expires : date, path: '/' });
47
  }
47
  }
48
}
48
}
49
49
Lines 75-81 function showColumn(num){ Link Here
75
    }
75
    }
76
    if( found ){
76
    if( found ){
77
        var cookieString = valCookie.join("/");
77
        var cookieString = valCookie.join("/");
78
        $.cookie("showColumns", cookieString, { expires : date });
78
        $.cookie("showColumns", cookieString, { expires : date, path: '/' });
79
    }
79
    }
80
  }
80
  }
81
}
81
}
Lines 83-89 function showAllColumns(){ Link Here
83
    $("#selections").checkCheckboxes();
83
    $("#selections").checkCheckboxes();
84
    $("#selections span").addClass("selected");
84
    $("#selections span").addClass("selected");
85
    $("#itemst td:nth-child(2),#itemst tr th:nth-child(2)").nextAll().show();
85
    $("#itemst td:nth-child(2),#itemst tr th:nth-child(2)").nextAll().show();
86
    $.cookie("showColumns",null);
86
    $.removeCookie("showColumns", { path: '/' });
87
    $("#hideall").removeAttr("checked").parent().removeClass("selected");
87
    $("#hideall").removeAttr("checked").parent().removeClass("selected");
88
}
88
}
89
function hideAllColumns(){
89
function hideAllColumns(){
Lines 92-98 function hideAllColumns(){ Link Here
92
    $("#itemst td:nth-child(2),#itemst th:nth-child(2)").nextAll().hide();
92
    $("#itemst td:nth-child(2),#itemst th:nth-child(2)").nextAll().hide();
93
    $("#hideall").attr("checked","checked").parent().addClass("selected");
93
    $("#hideall").attr("checked","checked").parent().addClass("selected");
94
    var cookieString = allColumns.join("/");
94
    var cookieString = allColumns.join("/");
95
    $.cookie("showColumns", cookieString, { expires : date });
95
    $.cookie("showColumns", cookieString, { expires : date, path: '/' });
96
}
96
}
97
97
98
  $(document).ready(function() {
98
  $(document).ready(function() {
99
- 

Return to bug 12320