Revert "Handle MR "show all commits" link with a doc-ready event handler."
This reverts commit 5b1ede6280
.
This commit is contained in:
parent
581a822326
commit
a9c7de8815
|
@ -58,16 +58,15 @@ var MergeRequest = {
|
||||||
dataType: "script"});
|
dataType: "script"});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
showAllCommits:
|
||||||
|
function() {
|
||||||
|
$(".first_mr_commits").remove();
|
||||||
|
$(".all_mr_commits").removeClass("hide");
|
||||||
|
},
|
||||||
|
|
||||||
already_cannot_be_merged:
|
already_cannot_be_merged:
|
||||||
function(){
|
function(){
|
||||||
$(".automerge_widget").hide();
|
$(".automerge_widget").hide();
|
||||||
$(".automerge_widget.already_cannot_be_merged").show();
|
$(".automerge_widget.already_cannot_be_merged").show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
|
||||||
$('.first_mr_commits a.show_all').live('click', function() {
|
|
||||||
$(".first_mr_commits").remove();
|
|
||||||
$(".all_mr_commits").removeClass("hide");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
%li.bottom
|
%li.bottom
|
||||||
8 of #{@commits.count} commits displayed.
|
8 of #{@commits.count} commits displayed.
|
||||||
%strong
|
%strong
|
||||||
%a.show_all Click here to show all
|
= link_to_function "Click here to show all", "MergeRequest.showAllCommits()"
|
||||||
%ul.all_mr_commits.hide.unstyled
|
%ul.all_mr_commits.hide.unstyled
|
||||||
- @commits.each do |commit|
|
- @commits.each do |commit|
|
||||||
= render "commits/commit", :commit => commit
|
= render "commits/commit", :commit => commit
|
||||||
|
|
Loading…
Reference in a new issue