This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix tabs in older browsers.

  • Loading branch information...
realityking committed Sep 10, 2011
1 parent bd3429f commit cc048aeab7a349aabc3956579bc9af7ec82ec296
Showing with 4 additions and 4 deletions.
  1. +4 −4 media/system/js/tabs.js
View
@@ -44,9 +44,9 @@ var JTabs = new Class({
if (this.options.useStorage) {
if (Browser.Features.localstorage) {
- this.options.display = Cookie.read(this.storageName);
+ this.options.display = localStorage[this.storageName];
} else {
- this.options.display = localstorage[this.storageName];
+ this.options.display = Cookie.read(this.storageName);
}
}
if (this.options.display === null) {
@@ -80,9 +80,9 @@ var JTabs = new Class({
this.fireEvent('onActive', [this.titles[i], this.descriptions[i]]);
if (this.options.useStorage) {
if (Browser.Features.localstorage) {
- Cookie.write(this.storageName, i);
+ localStorage[this.storageName] = i;
} else {
- localstorage[this.storageName] = i;
+ Cookie.write(this.storageName, i);
}
}
}

0 comments on commit cc048ae

Please sign in to comment.