Ticket #20337: customize-loader.dev.js.patch
File customize-loader.dev.js.patch, 892 bytes (added by , 13 years ago) |
---|
-
customize-loader.dev.js
17 17 Loader.element.toggleClass('collapsed'); 18 18 return false; 19 19 }); 20 21 window.location.hash = ''; 20 22 }, 21 23 open: function( params ) { 22 24 params.customize = 'on'; 23 25 26 window.location.hash = '#customize'; 27 28 var hash = window.location.hash; 29 setInterval(function(){ 30 if (window.location.hash != hash) { 31 Loader.close(); 32 } 33 }, 100); 34 24 35 this.iframe = $( '<iframe />', { 25 36 src: this.base + '?' + jQuery.param( params ) 26 37 }).appendTo( this.element ); … … 30 41 }); 31 42 }, 32 43 close: function() { 44 window.location.hash = ''; 33 45 this.element.fadeOut( 200, function() { 34 46 Loader.iframe.remove(); 35 47 Loader.iframe = null;