app/views/alchemy/admin/spree/index.html.erb in alchemy_spree-0.1.0 vs app/views/alchemy/admin/spree/index.html.erb in alchemy_spree-0.1.2

- old
+ new

@@ -1,15 +1,17 @@ -<iframe src="<%= spree.admin_url %>" frameborder=0 width="100%" id="spree_admin" style="display: none"></iframe> +<%= image_tag('alchemy/ajax_loader.gif', :id => "frame_load_info", :style => "position: absolute; top: 50%; left: 50%; margin-top: -12px; margin-left: -12px") %> +<iframe src="<%= spree.admin_url(:protocol => Rails.env.production? ? 'https' : nil) %>" frameborder=0 width="100%" id="spree_admin" style="display: none"></iframe> <script type="text/javascript"> jQuery(document).ready(function($) { var $frame = $('iframe#spree_admin'); function sizeSpreeFrame() { $frame.css({height: $(window).height()-62}); } $('#toolbar').remove(); $frame.on('load', function() { $('#main_content').css({'background-color': '#162F54'}); sizeSpreeFrame(); + $('#frame_load_info').hide(); $frame.show(); }); $(window).on('resize', sizeSpreeFrame); }); </script>