From 83b4ab91be67dfe63022b7d911253f1d81a8dfef Mon Sep 17 00:00:00 2001 From: Sanj B Date: Mon, 9 Jan 2012 00:15:28 +0530 Subject: [PATCH] use Ox.localStorage --- js/pandora-ui.js | 4 ++-- js/speedtrans.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/pandora-ui.js b/js/pandora-ui.js index 7e52916..b233e39 100644 --- a/js/pandora-ui.js +++ b/js/pandora-ui.js @@ -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); } }; diff --git a/js/speedtrans.js b/js/speedtrans.js index 7f605f4..920a207 100644 --- a/js/speedtrans.js +++ b/js/speedtrans.js @@ -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: {}