diff options
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); |