summaryrefslogtreecommitdiff
path: root/assets/js/base.js
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-17 17:11:51 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-17 17:11:51 -0500
commit84b0f0df90442775b9122457648f06c9485df1f1 (patch)
tree5f0fb91ed9280bbf10bb60d69f3523cafc928f5c /assets/js/base.js
parent4b45b2aa3533309898670f1b13756dfdfce355a7 (diff)
Add project calendars (merge/refactoring of #490)
Diffstat (limited to 'assets/js/base.js')
-rw-r--r--assets/js/base.js16
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) {