summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Davis2012-12-23 16:47:41 (GMT)
committer Ben Davis2012-12-23 16:47:41 (GMT)
commit57372169c6f651c18856aa81d8b1c606918668bd (patch)
tree660f4d9346c12504c94c0be23148c296bc275986
parentfb36624a91d5e66ec87140bc21d93c6170b382d0 (diff)
Fixed js causing Weigth Range to always be disabed by default.
-rw-r--r--weight.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/weight.js b/weight.js
index a09ddd4..23eaee1 100644
--- a/weight.js
+++ b/weight.js
@@ -19,7 +19,7 @@ Drupal.behaviors.weight = {
});
// Force range to 50 when menu weight is selected.
- if ($('input:radio[name="weight_menu"]:checked').val()) {
+ if ($('input:radio[name="weight_menu"]:checked').val() == 1) {
$('#edit-weight-range-50').click();
$('input:radio[name="weight_range"]').attr('disabled', 'disabled');
}