better a11y than display:none

This commit is contained in:
Zachary Kain
2013-03-05 22:19:20 -05:00
parent 174c7a8b9f
commit 84e07a0317
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ module.exports.app = (appExports, model) ->
appExports.toggleTaskEdit = (e, el) ->
hideId = $(el).attr('data-hide-id')
toggleId = $(el).attr('data-toggle-id')
$(document.getElementById(hideId)).hide()
$(document.getElementById(toggleId)).toggle()
$(document.getElementById(hideId)).addClass('visuallyhidden')
$(document.getElementById(toggleId)).toggleClass('visuallyhidden')
appExports.toggleChart = (e, el) ->
hideSelector = $(el).attr('data-hide-id')