Permalink
Browse files

Mod: 重定向事件过程加入 Loading.

  • Loading branch information...
1 parent 027e96a commit 60bb8eaca6639122791d31b8d73996e96369492a @huacnlee huacnlee committed Apr 8, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 public/javascripts/asks.js
@@ -91,12 +91,14 @@ var Asks = {
},
redirect_ask_save : function(el){
+ App.loading();
r_id = $("#redirect_ask_panel .r_id").val();
r_title = $("#redirect_ask_panel input.r_title").val();
if(r_id.length == ""){
$("#redirect_ask_panel input.search").focus();
}
$.get("/asks/"+ask_id+"/redirect",{ new_id : r_id }, function(res){
+ App.loading(false);
if(res == "1"){
ask_redirected = true;
Asks.redirected_tip(r_title,r_id, 'nr', ask_id );

0 comments on commit 60bb8ea

Please sign in to comment.