Skip to content

Commit

Permalink
Fix tabs in older browsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Oct 21, 2011
1 parent bd3429f commit cc048ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/system/js/tabs.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit cc048ae

Please sign in to comment.