diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-17 17:11:51 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-17 17:11:51 -0500 |
commit | 84b0f0df90442775b9122457648f06c9485df1f1 (patch) | |
tree | 5f0fb91ed9280bbf10bb60d69f3523cafc928f5c /assets/js/base.js | |
parent | 4b45b2aa3533309898670f1b13756dfdfce355a7 (diff) |
Add project calendars (merge/refactoring of #490)
Diffstat (limited to 'assets/js/base.js')
-rw-r--r-- | assets/js/base.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/js/base.js b/assets/js/base.js index 08287e42..75d23b88 100644 --- a/assets/js/base.js +++ b/assets/js/base.js @@ -65,6 +65,22 @@ var Kanboard = (function() { return true; }, + // Save preferences in local storage + SetStorageItem: function(key, value) { + if (typeof(Storage) !== "undefined") { + localStorage.setItem(key, value); + } + }, + + GetStorageItem: function(key) { + + if (typeof(Storage) !== "undefined") { + return localStorage.getItem(key); + } + + return ''; + }, + // Generate Markdown preview MarkdownPreview: function(e) { |