clean up unless code

This commit is contained in:
Matthew K. Fu JuYuan 2012-05-22 13:23:26 +08:00
parent ae006cc29f
commit 7f3b090bb7
2 changed files with 1 additions and 8 deletions

View File

@ -1,10 +1,3 @@
// $.ready(function(){
// $('body').bind("ajaxSend", function(){
// $('<div class="modal-backdrop fade in"></div>').appendTo('body');
// }).bind("ajaxComplete", function(){
// $('body > div.modal-backdrop').hide().remove();
// });
// });
jQuery(document).ajaxStart(function(){
$('<div class="modal-backdrop fade in" id="sys_modal"><img src="/assets/ajax-loader.gif" style="margin-top: 25%;margin-left: 50%;"></div>').appendTo('body');
});

View File

@ -48,7 +48,7 @@ $(document).ready(function() {
dataType: "script",
url:$(this).parents("from").attr("href"),
data:$(this).parents("form").serialize()
});//.ajaxStart(function(){$('body').append('<div class="modal-backdrop fade in" id="modal_layer"></div>')});//.ajaxStop(function(){"#modal_layer"}).remove();
});
});
});
</script>