Sha256: d415fd75f746ed8bff428d559aedf655322c399969212e541360f7f55f2b4c2c

Contents?: true

Size: 513 Bytes

Versions: 4

Compression:

Stored size: 513 Bytes

Contents

$(function() {

	$('body').append("<div id='ajax-loader'></div>");
	$('#ajax-loader').css( { 
		'background': 'url(mdwa/ajax-loader.gif) no-repeat scroll 0 0 transparent',
    	'display': 'none',
    	'height': '42px',
    	'left': '50%',
    	'position': 'fixed',
    	'text-align': 'center',
    	'top': '50%',
    	'width': '42px',
    	'z-index': '10001'
    });

	$(document).bind("ajaxSend", function() {
		$('#ajax-loader').show();
	}).bind("ajaxComplete", function() {
		$('#ajax-loader').hide();
	});
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mdd-1.0.3 lib/generators/mdd/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js
mdd-1.0.2 lib/generators/mdd/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js
mdd-1.0.1 lib/generators/mdd/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js
mdd-1.0 lib/generators/mdd/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js