summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-12-11 22:39:29 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-12-11 22:39:29 +0000
commitf51ffa07b3faf0c1e1984b2853e4c8af36ae3289 (patch)
tree44cab2fb667839abe7643f56d34fc3c705cd6651 /share/www/database.html
parentfc27e23f3cc57159b1ee91747591cb0496385489 (diff)
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
Diffstat (limited to 'share/www/database.html')
-rw-r--r--share/www/database.html7
1 files changed, 6 insertions, 1 deletions
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();