From 84b0f0df90442775b9122457648f06c9485df1f1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 17 Jan 2015 17:11:51 -0500 Subject: Add project calendars (merge/refactoring of #490) --- assets/js/base.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'assets/js/base.js') 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) { -- cgit v1.2.3