Sha256: 502a6ab63bbf6e747c565186607f463291bc80a42519260254d623572a20a27f
Contents?: true
Size: 1.88 KB
Versions: 6
Compression:
Stored size: 1.88 KB
Contents
I"u(function() { Alchemy.Initializer = function() { $('html').removeClass('no-js'); Alchemy.GUI.init(); if ($('#flash_notices').length > 0) { Alchemy.Growler.fade(); } $('.please_wait, #main_navi a, .button_with_label form :submit, .locked_page a, .pagination a').not('*[data-alchemy-confirm], .locked_page button').click(function() { if (!Alchemy.isPageDirty()) { return Alchemy.pleaseWaitOverlay(); } }); $('a.button').attr({ tabindex: 0 }); $('select#change_locale').on('change', function(e) { var delimiter, url; url = window.location.pathname; delimiter = url.match(/\?/) ? '&' : '?'; return window.location.href = "" + url + delimiter + "admin_locale=" + ($(this).val()); }); $('select#change_site').on('change', function(e) { var delimiter, url; url = window.location.pathname; delimiter = url.match(/\?/) ? '&' : '?'; return window.location.href = "" + url + delimiter + "site_id=" + ($(this).val()); }); $('select[data-auto-submit="true"]').on('change', function(e) { Alchemy.pleaseWaitOverlay(); return $(this.form).submit(); }); Alchemy.ImageLoader('#main_content'); key.filter = function(event) { var tagName; tagName = (event.target || event.srcElement).tagName; return key.isPressed('esc') || !(tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA'); }; return $('table.list').floatThead({ useAbsolutePositioning: false, scrollingTop: 122, zIndex: 1 }); }; if (Turbolinks.enableProgressBar) { Turbolinks.enableProgressBar(); } $(document).on('page:change turbolinks:load', function() { Alchemy.Initializer(); }); $(document).on('page:receive turbolinks:request-end', function() { Alchemy.Tinymce.removeFrom($('.has_tinymce')); }); }).call(this); :ET
Version data entries
6 entries across 6 versions & 2 rubygems