summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-30 16:35:39 +0200
committerAzul <azul@leap.se>2014-05-06 09:36:28 +0200
commit3952a7dfcd13993bd51ac7dc07cb3a01b4658e25 (patch)
tree5336a0921ff84b6b8c0957c9907ffe20ba2f9ba6 /app/helpers
parent3afb745d961c5b34d980e7e005c4e7bf81a880c4 (diff)
hide srp forms when no js is available
Hiding them using two mechanisms in case one fails: .hidden class - bootstrap hides them then style='display:none' - so they are hidden even if css load fails
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/users_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index f56faab..1b2dc5d 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -1,7 +1,7 @@
module UsersHelper
def user_form_class(*classes)
- (classes + ['user', 'form', (@user.new_record? ? 'new' : 'edit')]).compact.join(' ')
+ (classes + ['user', 'hidden', 'js-show', (@user.new_record? ? 'new' : 'edit')]).compact.join(' ')
end
def wrapped(item, options = {})