diff options
| author | jpl | 2017-03-27 11:42:44 +0200 |
|---|---|---|
| committer | jpl | 2017-03-27 11:42:44 +0200 |
| commit | ac5bdcced03ef10e4c214685ef4a3c3dc339b321 (patch) | |
| tree | e9194ee64e20f7d906ebd1c8bff1c4dcb2f88363 /app/assets/javascripts/forms.coffee | |
| parent | 2c21e6dbbd2ed85070ee1ebdd26ee97882f424dd (diff) | |
| download | chouette-core-ac5bdcced03ef10e4c214685ef4a3c3dc339b321.tar.bz2 | |
Tmp disabling of sticky nav
Diffstat (limited to 'app/assets/javascripts/forms.coffee')
| -rw-r--r-- | app/assets/javascripts/forms.coffee | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/app/assets/javascripts/forms.coffee b/app/assets/javascripts/forms.coffee index c8dd69581..33da921b6 100644 --- a/app/assets/javascripts/forms.coffee +++ b/app/assets/javascripts/forms.coffee @@ -17,23 +17,23 @@ else labelCont.text(labelCont.data('checkedvalue')) -@submitMover = -> - if $('.page-action').children('.formSubmitr').length > 0 - $('.page-action').children('.formSubmitr').remove() - - $('.formSubmitr').appendTo('.page-action') - - # IE fix - isIE = false || !!document.documentMode - isEdge = !isIE && !!window.StyleMedia - - if isIE || isEdge - $('.formSubmitr').each -> - target = $(this).attr('form') - - $(this).on 'click', -> - $('#' + target).submit() +# @submitMover = -> +# if $('.page-action').children('.formSubmitr').length > 0 +# $('.page-action').children('.formSubmitr').remove() +# +# $('.formSubmitr').appendTo('.page-action') +# +# # IE fix +# isIE = false || !!document.documentMode +# isEdge = !isIE && !!window.StyleMedia +# +# if isIE || isEdge +# $('.formSubmitr').each -> +# target = $(this).attr('form') +# +# $(this).on 'click', -> +# $('#' + target).submit() $(document).on 'ready page:load', togglableFilter -$(document).on 'ready page:load', submitMover +# $(document).on 'ready page:load', submitMover $(document).on 'ready page:load', switchInput |
