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

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/commons.js (-3 / +1 lines)
Lines 27-33 function addBibToContext( bibnum ) { Link Here
27
    var bibnums = getContextBiblioNumbers();
27
    var bibnums = getContextBiblioNumbers();
28
    bibnums.push(bibnum);
28
    bibnums.push(bibnum);
29
    setContextBiblioNumbers( bibnums );
29
    setContextBiblioNumbers( bibnums );
30
    //var store = sessionStorage.getItem( "bibs_selected" );
30
    setContextBiblioNumbers( $.uniqueArray( bibnums ) );
31
}
31
}
32
32
33
function delBibToContext( bibnum ) {
33
function delBibToContext( bibnum ) {
Lines 37-48 function delBibToContext( bibnum ) { Link Here
37
}
37
}
38
38
39
function setContextBiblioNumbers( bibnums ) {
39
function setContextBiblioNumbers( bibnums ) {
40
    //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) );
41
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
40
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
42
}
41
}
43
42
44
function getContextBiblioNumbers() {
43
function getContextBiblioNumbers() {
45
    //var r = sessionStorage.getItem("bibs_selected");
46
    var r = $.cookie('bibs_selected');
44
    var r = $.cookie('bibs_selected');
47
    if ( r ) {
45
    if ( r ) {
48
        return JSON.parse(r);
46
        return JSON.parse(r);
(-)a/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js (-4 / +1 lines)
Lines 26-33 function paramOfUrl( url, param ) { Link Here
26
function addBibToContext( bibnum ) {
26
function addBibToContext( bibnum ) {
27
    var bibnums = getContextBiblioNumbers();
27
    var bibnums = getContextBiblioNumbers();
28
    bibnums.push(bibnum);
28
    bibnums.push(bibnum);
29
    setContextBiblioNumbers( bibnums );
29
    setContextBiblioNumbers( $.uniqueArray( bibnums ) );
30
    //var store = sessionStorage.getItem( "bibs_selected" );
31
}
30
}
32
31
33
function delBibToContext( bibnum ) {
32
function delBibToContext( bibnum ) {
Lines 37-48 function delBibToContext( bibnum ) { Link Here
37
}
36
}
38
37
39
function setContextBiblioNumbers( bibnums ) {
38
function setContextBiblioNumbers( bibnums ) {
40
    //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) );
41
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
39
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
42
}
40
}
43
41
44
function getContextBiblioNumbers() {
42
function getContextBiblioNumbers() {
45
    //var r = sessionStorage.getItem("bibs_selected");
46
    var r = $.cookie('bibs_selected');
43
    var r = $.cookie('bibs_selected');
47
    if ( r ) {
44
    if ( r ) {
48
        return JSON.parse(r);
45
        return JSON.parse(r);
(-)a/koha-tmpl/opac-tmpl/prog/en/js/commons.js (-5 / +1 lines)
Lines 26-33 function paramOfUrl( url, param ) { Link Here
26
function addBibToContext( bibnum ) {
26
function addBibToContext( bibnum ) {
27
    var bibnums = getContextBiblioNumbers();
27
    var bibnums = getContextBiblioNumbers();
28
    bibnums.push(bibnum);
28
    bibnums.push(bibnum);
29
    setContextBiblioNumbers( bibnums );
29
    setContextBiblioNumbers( $.uniqueArray( bibnums ) );
30
    //var store = sessionStorage.getItem( "bibs_selected" );
31
}
30
}
32
31
33
function delBibToContext( bibnum ) {
32
function delBibToContext( bibnum ) {
Lines 37-48 function delBibToContext( bibnum ) { Link Here
37
}
36
}
38
37
39
function setContextBiblioNumbers( bibnums ) {
38
function setContextBiblioNumbers( bibnums ) {
40
    //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) );
41
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
39
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
42
}
40
}
43
41
44
function getContextBiblioNumbers() {
42
function getContextBiblioNumbers() {
45
    //var r = sessionStorage.getItem("bibs_selected");
46
    var r = $.cookie('bibs_selected');
43
    var r = $.cookie('bibs_selected');
47
    if ( r ) {
44
    if ( r ) {
48
        return JSON.parse(r);
45
        return JSON.parse(r);
49
- 

Return to bug 10858