/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/collapse.js

fix some js

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        this.location.href = url + "-s";
110
110
    }
111
111
}
 
112
 
 
113
function show_sbs() {
 
114
        collapseDisplay('style', 'sbs', 'table');
 
115
        collapseDisplay('style', 'unified', 'none');
 
116
        document.cookie='diff=sbs';
 
117
}
 
118
function show_unified() {
 
119
        collapseDisplay('style', 'unified', 'table');
 
120
        collapseDisplay('style', 'sbs', 'none');
 
121
        document.cookie='diff=unified';
 
122
}
 
123
function load() {
 
124
        sortCollapseElements();
 
125
        if (document.cookie.indexOf('diff=unified') >= 0) { show_unified(); }
 
126
}