From f51ffa07b3faf0c1e1984b2853e4c8af36ae3289 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Fri, 11 Dec 2009 22:39:29 +0000 Subject: Futon: A couple of bug fixes: * Enable tab insertion in text areas for temp views. * Properly sync disabled status of "grouping" control on page load. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889841 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/database.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'share/www/database.html') diff --git a/share/www/database.html b/share/www/database.html index 64785e14..b997f2cf 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -71,8 +71,13 @@ 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"); + $("#reduce :checkbox")[0].checked = reduce; $("#grouplevel select").val($.futon.storage.get("group_level")); - $("#reduce :checkbox")[0].checked = $.futon.storage.get("reduce"); + $("#grouplevel").toggleClass("disabled", !reduce).find("select").each(function() { + this.disabled = !reduce; + }); + $("#perpage").val($.futon.storage.get("per_page")); page.populateViewsMenu(); -- cgit v1.2.3