diff options
author | Anika Henke <anika@selfthinker.org> | 2013-07-31 17:05:07 +0100 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2013-07-31 17:05:07 +0100 |
commit | 0e1777cbe86faf809f67198704842a01034a1a98 (patch) | |
tree | e2a9c972f19e7533821e02205789e72c64576a2a /lib/scripts/behaviour.js | |
parent | 21134337f0a0d72b198e4be0561fe4dd729d1f07 (diff) | |
download | rpg-0e1777cbe86faf809f67198704842a01034a1a98.tar.gz rpg-0e1777cbe86faf809f67198704842a01034a1a98.tar.bz2 |
added aria attributes to tree and show/hide functions
Diffstat (limited to 'lib/scripts/behaviour.js')
-rw-r--r-- | lib/scripts/behaviour.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index f1c46bf4c..85ddf503e 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -5,6 +5,7 @@ * @author Adrian Lang <mail@adrianlang.de> */ jQuery.fn.dw_hide = function(fn) { + this.attr('aria-expanded', 'false'); return this.slideUp('fast', fn); }; @@ -15,6 +16,7 @@ jQuery.fn.dw_hide = function(fn) { * @author Adrian Lang <mail@adrianlang.de> */ jQuery.fn.dw_show = function(fn) { + this.attr('aria-expanded', 'true'); return this.slideDown('fast', fn); }; |