Sha256: 307e860c5f5b9d26456b8709ac539799874ab1a6fe101bedf528b3cf872707f1
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
#= require active_admin/base $ -> # style select tags $('select').wrap("<div class='styled_select'></div>") if $('body').hasClass('logged_out') && $('#login h2').text() != 'Forgot your password?' # create placeholders $('#admin_user_email_input label').remove() $('#admin_user_email_input input').attr('placeholder', 'email') $('#admin_user_password_input label').remove() $('#admin_user_password_input input').attr('placeholder', 'password') # re-organize form actions $('#admin_user_submit_action').detach().insertBefore('#admin_user_remember_me_input') $('#login a').html('forgot password?') else if $('body').hasClass('logged_out') && $('#login h2').text() == 'Forgot your password?' $('#admin_user_email_input label').remove() $('#admin_user_submit_action').detach().insertAfter('#admin_user_email_input') $('#admin_user_email_input input').attr('placeholder', 'email') $('#login a').css 'margin', '1px 0' $('#login a').css 'text-align', 'center' $('#login a').css 'width', '100%' if $('body').hasClass('admin_product_positions') $('#feed-blocks-admin').sortable() $('#feed-blocks-admin').disableSelection() $('a#submit-product-positions').click (event) -> event.preventDefault() $('#products').val($('#feed-blocks-admin').sortable('toArray', { attribute: 'data-product-id' })) $('#product-positions-form').submit() return false $('#category-select, #store-select').change -> window.location = window.location.href.split('?')[0] + '?category_id=' + $('#category-select').val() + '&store_id=' + $('#store-select').val() if window.location.href.split('?')[1] != undefined currentCategory = Number(window.location.href.split('?')[1].split('&')[0].split("=")[1]) $('#category-select').find("option[value=" + Number(window.location.href.split('?')[1].split('&')[0].split("=")[1]) + "]").attr('selected', true)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/assets/javascripts/gemgento/active_admin.js.coffee |