fixed merge request notes hide

This commit is contained in:
Dmitriy Zaporozhets 2012-03-15 23:01:50 +02:00
parent cf68adda4b
commit 828f84fdb3

View file

@ -11,7 +11,7 @@ var MergeRequest = {
$(".tabs a.merge-notes-tab").live("click", function(e) { $(".tabs a.merge-notes-tab").live("click", function(e) {
$(".merge-request-diffs").hide(); $(".merge-request-diffs").hide();
$(".merge-request-notes").show(); $(".merge_request_notes").show();
e.preventDefault(); e.preventDefault();
}); });
@ -19,7 +19,7 @@ var MergeRequest = {
if(!MergeRequest.diffs_loaded) { if(!MergeRequest.diffs_loaded) {
MergeRequest.loadDiff(); MergeRequest.loadDiff();
} }
$(".merge-request-notes").hide(); $(".merge_request_notes").hide();
$(".merge-request-diffs").show(); $(".merge-request-diffs").show();
e.preventDefault(); e.preventDefault();
}); });
@ -33,7 +33,7 @@ var MergeRequest = {
url: $(".merge-diffs-tab").attr("data-url"), url: $(".merge-diffs-tab").attr("data-url"),
complete: function(){ complete: function(){
MergeRequest.diffs_loaded = true; MergeRequest.diffs_loaded = true;
$(".merge-request-notes").hide(); $(".merge_request_notes").hide();
$(".dashboard-loader").hide()}, $(".dashboard-loader").hide()},
dataType: "script"}); dataType: "script"});
} }