summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
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();