static/script/10-olelo.historytable.js in olelo-0.9.3 vs static/script/10-olelo.historytable.js in olelo-0.9.4
- old
+ new
@@ -3,11 +3,11 @@
$('thead tr', this).prepend('<th class="compare"><button>±</button></th>');
$('tbody tr', this).each(function() {
var version = $(this).attr('id').substr(8);
$(this).prepend('<td class="compare"><input type="checkbox" name="' + version + '"/></td>');
});
- var versions = jStorage.get('historyTable');
+ var versions = $.storage.get('historyTable');
if (versions) {
for (var i = 0; i < versions.length; ++i)
$('input[name=' + versions[i] + ']').attr('checked', 'checked');
}
@@ -23,10 +23,10 @@
}
var button = $('th button', this);
button.click(function() {
var versions = getSelectedVersions();
- jStorage.set('historyTable', versions);
+ $.storage.set('historyTable', versions);
location.href = location.pathname.replace('/history', '/compare/' + versions[versions.length-1] + '...' + versions[0]);
});
$('td input', this).change(function() {
var versions = getSelectedVersions();