2014-04-08 23:28:46 +00:00
|
|
|
//= require jquery
|
|
|
|
//= require jquery_ujs
|
|
|
|
//= require jquery.periodicalupdater
|
|
|
|
//= require jquery.jplayer.min
|
|
|
|
//= require flowplayer
|
|
|
|
//= require tinymce-jquery
|
|
|
|
//= require yetii
|
|
|
|
//= require local
|
|
|
|
//= require_self
|
|
|
|
|
|
|
|
$ ->
|
2014-04-17 07:55:19 +00:00
|
|
|
$('#logout').click ->
|
2014-04-15 09:59:52 +00:00
|
|
|
$(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'
|
|
|
|
|