2016-08-04 11:13:31 +08:00
|
|
|
<div id="pull_request_new_form">
|
|
|
|
<div id="create_pull_request_error">
|
2016-08-04 10:08:13 +08:00
|
|
|
<%= render :partial => "pull_requests/error_message" %>
|
2016-08-04 11:13:31 +08:00
|
|
|
</div>
|
2016-08-03 11:07:49 +08:00
|
|
|
|
2016-08-04 11:13:31 +08:00
|
|
|
<div class="new-merge-request">
|
|
|
|
<div class="f14 fontGrey3 fb mb10">新的合并请求</div>
|
|
|
|
</div>
|
|
|
|
<%= render :partial => "pull_requests/form" %>
|
2016-08-03 11:07:49 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2016-08-04 11:13:31 +08:00
|
|
|
$("#pull_request_new_form").parent().css("width","730px");
|
2016-08-03 11:07:49 +08:00
|
|
|
|
|
|
|
$("#changed-files").toggle(function(){
|
|
|
|
$("#changed-files-detail").show();
|
|
|
|
},function(){
|
|
|
|
$("#changed-files-detail").hide();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".merge-record li a").click(function(){
|
|
|
|
$(".merge-record li a").removeClass("active");
|
|
|
|
$(this).addClass("active");
|
|
|
|
|
|
|
|
var index = $(".merge-record li a").index(this);
|
|
|
|
|
|
|
|
$("#merge_record_0, #merge_record_1").hide();
|
|
|
|
$("#merge_record_" + index).show();
|
|
|
|
});
|
|
|
|
</script>
|