diff options
author | Matthias Schulte <post@lupo49.de> | 2011-07-17 12:18:37 +0200 |
---|---|---|
committer | Matthias Schulte <post@lupo49.de> | 2011-07-17 12:18:37 +0200 |
commit | 8e5a3957cd8de15f48dc27e9c07dfe4033fd6997 (patch) | |
tree | e819b734e24a3fb1a40da50383dfbaf34ba3b1d6 /lib/scripts/subscriptions.js | |
parent | 3f3f8d1d768a4996d5a2fcc0ce8715e455ce7cad (diff) | |
parent | 1e542e417725bb148253929fac9146832d978e45 (diff) | |
download | rpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.gz rpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.bz2 |
Merge remote branch 'upstream/master'
Diffstat (limited to 'lib/scripts/subscriptions.js')
-rw-r--r-- | lib/scripts/subscriptions.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/scripts/subscriptions.js b/lib/scripts/subscriptions.js index 565ea33eb..b7bffb158 100644 --- a/lib/scripts/subscriptions.js +++ b/lib/scripts/subscriptions.js @@ -21,18 +21,15 @@ jQuery(function () { $form.find("input[name='sub_target']") .click( function () { - var $input = jQuery(this); - if (!$input.prop('checked')) { + var $this = jQuery(this), show_list; + if (!$this.prop('checked')) { return; } - if ($input.val().match(/:$/)) { - $list.parent().slideDown('fast'); - } else { - $list.parent().slideUp('fast'); - if ($list.prop('checked')) { - $digest.prop('checked', 'checked'); - } + show_list = $this.val().match(/:$/); + $list.parent().dw_toggle(show_list); + if (!show_list && $list.prop('checked')) { + $digest.prop('checked', 'checked'); } } ) |