use Ox.localStorage

This commit is contained in:
Sanj B 2012-01-09 00:15:28 +05:30
parent 1550afeea2
commit 83b4ab91be
2 changed files with 4 additions and 3 deletions

View File

@ -246,10 +246,10 @@ pandora.ui.textArea = function() {
save: function() {
var filename = $video.options("video");
localStorage[filename] = that.value();
pandora.storage(filename, that.value);
},
load: function(filename) {
var val = localStorage[filename] || '';
var val = pandora.storage(filename) || '';
that.value(val);
}
};

View File

@ -10,7 +10,7 @@
}, loadSpeedtrans);
function loadSpeedtrans(browserSupported) {
alert("hi");
if (!browserSupported) { alert("your browser is not supported"); return; }
window.pandora = Ox.App({url: '/api/'}).bindEvent({
'load': function(data) {
@ -24,6 +24,7 @@
pandora.resizeWindow();
})
},
storage: Ox.localStorage("speedtrans"),
ui: {},
site: {},
user: {}