From 1a0100db20a8356dc669b07d12e4c316a19aff9e Mon Sep 17 00:00:00 2001 From: cblanc Date: Wed, 6 May 2015 00:04:41 +0100 Subject: [PATCH] Cleanup: move out js, require_self shouldnt be necessary --- app/assets/javascripts/application.js.coffee | 42 +------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee index cc5b14b..8cb6a1b 100644 --- a/app/assets/javascripts/application.js.coffee +++ b/app/assets/javascripts/application.js.coffee @@ -6,43 +6,5 @@ //= require tinymce-jquery //= require yetii //= require local -//= require_self - -$ -> - $('#logout').click -> - $(this).closest('form').submit() - - $('select').each (i, el) -> - $select = $(el) - - $select.wrap '
' - $select.on 'DOMSubtreeModified', (event) -> - $el = $(this) - $wrapper = $el.parent() - - if $el.is("[disabled]") - $wrapper.addClass 'disabled' - else - $wrapper.removeClass 'disabled' - - $select.trigger 'DOMSubtreeModified' - - $('a[href=#form_submit]').click -> - $(this).closest('form').submit() - return false - - $('select.autosubmit').change -> - $(this).closest('form').submit() - - $('#notification').delay(3000).fadeOut() - - $('#steam-search a').click (event) -> - event.preventDefault() - - $search = $('#steam-search') - id = $search.data 'user-id' - - $search.html "

Searching...

" - - $.get "/api/v1/users/#{id}", (data) -> - $search.html "Steam Profile: #{data.steam.nickname}" +//= require shoutbox +//= require misc \ No newline at end of file