Js refactoring and ajax animation replaced

This commit is contained in:
Dmitriy Zaporozhets 2012-03-26 21:41:58 +03:00
parent f1c534c68e
commit 7d56a51bdc
14 changed files with 41 additions and 54 deletions

View file

@ -31,10 +31,12 @@ var MergeRequest = {
$.ajax({
type: "GET",
url: $(".merge-diffs-tab").attr("data-url"),
beforeSend: function(){ $('.status').addClass("loading")},
complete: function(){
MergeRequest.diffs_loaded = true;
$(".merge_request_notes").hide();
$(".dashboard-loader").hide()},
$('.status').removeClass("loading");
},
dataType: "script"});
}
}