ensl.org/app/assets/javascripts/application.js.coffee
Luke Barratt 37e768c68f Switched web server to puma
Added styling to gathers page
Added styling to account page
Improved forms styling
2014-04-15 10:59:52 +01:00

29 lines
No EOL
644 B
CoffeeScript

//= require jquery
//= require jquery_ujs
//= require jquery.periodicalupdater
//= require jquery.jplayer.min
//= require flowplayer
//= require tinymce-jquery
//= require yetii
//= require local
//= require_self
$ ->
$('logout').click ->
$(this).closest('form').submit()
$('select').each (i, el) ->
$select = $(el)
$select.wrap '<div class="select-wrapper" />'
$select.on 'DOMSubtreeModified', (event) ->
$el = $(this)
$wrapper = $el.parent()
if $el.is("[disabled]")
$wrapper.addClass 'disabled'
else
$wrapper.removeClass 'disabled'
$select.trigger 'DOMSubtreeModified'