1
0
Fork 0
forked from 0x2620/oxjs

add Ox.localStorage

This commit is contained in:
rolux 2011-12-30 20:36:55 +05:30
commit 45243cb5ff
5 changed files with 48 additions and 20 deletions

View file

@ -18,6 +18,7 @@ Ox.App = function(options) {
var self = {
options: Ox.extend({
name: 'App',
timeout: 60000,
type: 'POST',
url: '/api/'
@ -39,6 +40,8 @@ Ox.App = function(options) {
});
});
that.localStorage = Ox.localStorage(self.options.name);
function getUserData() {
return {
document: {

View file

@ -119,9 +119,7 @@ Ox.Theme = (function() {
});
});
}
if (localStorage) {
localStorage.OxTheme = theme;
}
localStorage['Ox.theme'] = theme;
return that;
}

View file

@ -869,7 +869,7 @@ Ox.Input = function(options, self) {
that.clearInput = function() {
clear();
return that;
}
};
/*@
focusInput <f> Focus input element
@ -1654,6 +1654,7 @@ Ox.InputElement_ = function(options, self) {
self.options.autosuggestSubmit && submit();
}
// FIXME: make this public!
function cursor(start, end) {
/*
cursor() returns [start, end]

View file

@ -39,8 +39,6 @@ Ox.Spreadsheet = function(options, self) {
});
}
Ox.print('Ss ----', self.options)
renderSpreadsheet();
function addColumn(index) {