diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-12-11 18:58:12 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-12-11 18:58:12 +0000 |
commit | f6447a3f18a3a1ee51cd488af7e65b51f10c0131 (patch) | |
tree | ccfed74c72275196b4cc32745e24fe3b4bd0230a /share/www/status.html | |
parent | 908f1a6068f6a055b15790289643d0e0a53f53a2 (diff) |
Futon: Improve storage of session state by storing short-term settings in the window.name.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889766 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/status.html')
-rw-r--r-- | share/www/status.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/www/status.html b/share/www/status.html index 72cd2afe..3e23f85d 100644 --- a/share/www/status.html +++ b/share/www/status.html @@ -20,7 +20,6 @@ specific language governing permissions and limitations under the License. <link rel="stylesheet" href="style/layout.css?0.11.0" type="text/css"> <script src="script/json2.js"></script> <script src="script/jquery.js?1.3.1"></script> - <script src="script/jquery.cookies.js?0.11.0"></script> <script src="script/jquery.couch.js?0.11.0"></script> <script src="script/futon.js?0.11.0"></script> </head> @@ -52,6 +51,8 @@ specific language governing permissions and limitations under the License. <script> var refreshTimeout = null; + $.futon.storage.declare("poll_interval", {defaultValue: 5}); + function refresh() { $.couch.activeTasks({ success: function(tasks) { @@ -83,12 +84,12 @@ specific language governing permissions and limitations under the License. } $("#interval .secs").text(value); refresh(); - $.cookies.set("pollinterval", value); + $.futon.storage.set("poll_interval", value); } $(function() { var slider = $("#interval input"); - slider.val(parseInt($.cookies.get("pollinterval", "5")) || 5); + slider.val(parseInt($.futon.storage.get("poll_interval"))); if (slider[0].type == "range") { slider.bind("input", function() { updateInterval(this.value); |