diff options
author | Jan Lehnardt <jan@apache.org> | 2010-11-02 22:16:18 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2010-11-02 22:16:18 +0000 |
commit | 871e2617e32fb305b9a4e16e560e270a7ef84ffc (patch) | |
tree | 8c233b348045a46484c7405590900d1afdfb5a6c /share/www/database.html | |
parent | b49ac86e9ac820ff327d132e418f0df5e0f772c8 (diff) |
Escape URL and cookie input.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1030261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/database.html')
-rw-r--r-- | share/www/database.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/www/database.html b/share/www/database.html index 39507398..f1d8dbd6 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -71,17 +71,17 @@ specific language governing permissions and limitations under the License. }); // Restore preferences/state - $("#documents thead th.key").toggleClass("desc", $.futon.storage.get("desc")); - var reduce = $.futon.storage.get("reduce"); + $("#documents thead th.key").toggleClass("desc", !!$.futon.storage.get("desc")); + var reduce = !!$.futon.storage.get("reduce"); $("#reduce :checkbox")[0].checked = reduce; - $("#grouplevel select").val($.futon.storage.get("group_level")); + $("#grouplevel select").val(parseInt($.futon.storage.get("group_level"))); $("#grouplevel").toggleClass("disabled", !reduce).find("select").each(function() { this.disabled = !reduce; }); - $("#perpage").val($.futon.storage.get("per_page")); + $("#perpage").val(parseInt($.futon.storage.get("per_page"))); - var staleViews = $.futon.storage.get("stale"); + var staleViews = !!$.futon.storage.get("stale"); $("#staleviews :checkbox")[0].checked = staleViews; page.populateViewsMenu(); |