From 99bcdf6e1e89f7daa8baf4acfad4eecdfe90be51 Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Tue, 22 May 2012 13:23:26 +0800 Subject: [PATCH] clean up unless code --- app/assets/javascripts/inc/ajax_setting.js | 7 ------- .../panel/news/back_end/news_approvals/setting.html.erb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/assets/javascripts/inc/ajax_setting.js b/app/assets/javascripts/inc/ajax_setting.js index 18d0da33..c23a73bf 100644 --- a/app/assets/javascripts/inc/ajax_setting.js +++ b/app/assets/javascripts/inc/ajax_setting.js @@ -1,10 +1,3 @@ -// $.ready(function(){ -// $('body').bind("ajaxSend", function(){ -// $('').appendTo('body'); -// }).bind("ajaxComplete", function(){ -// $('body > div.modal-backdrop').hide().remove(); -// }); -// }); jQuery(document).ajaxStart(function(){ $('').appendTo('body'); }); diff --git a/vendor/built_in_modules/news/app/views/panel/news/back_end/news_approvals/setting.html.erb b/vendor/built_in_modules/news/app/views/panel/news/back_end/news_approvals/setting.html.erb index 7b8211b4..298e21eb 100644 --- a/vendor/built_in_modules/news/app/views/panel/news/back_end/news_approvals/setting.html.erb +++ b/vendor/built_in_modules/news/app/views/panel/news/back_end/news_approvals/setting.html.erb @@ -48,7 +48,7 @@ $(document).ready(function() { dataType: "script", url:$(this).parents("from").attr("href"), data:$(this).parents("form").serialize() - });//.ajaxStart(function(){$('body').append('')});//.ajaxStop(function(){"#modal_layer"}).remove(); + }); }); }); \ No newline at end of file