项目issue,新建和编辑issue时,上传附件时,保存按钮不可点击
This commit is contained in:
parent
b1e0cc7884
commit
ae84afe43e
|
@ -1,3 +1,6 @@
|
|||
$('#issue_confirm').removeAttr("disabled");
|
||||
$('#issue_confirm').css('background-color', '#3b94d6');
|
||||
$('#issue_confirm').css('cursor','pointer');
|
||||
var fileSpan = $('#attachments_<%= j params[:attachment_id] %>');
|
||||
<% if(!@attachment.nil? && @attachment.new_record?) %>
|
||||
fileSpan.hide();
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
<a href="javascript:void(0);" onclick="issueDetailShow();" class="sy_btn_grey mr5 fr" > 取消 </a>
|
||||
<% end %>
|
||||
<!--<a href="javascript:void(0);" class="sy_btn_blue mr5 fr"> 保存并继续</a>-->
|
||||
<a href="javascript:void(0);" onclick="issue_desc_editor.sync();$('#issue-form').submit();" class="sy_btn_blue mr5 fr" id="issue_confirm"> 保存</a>
|
||||
<!--<a href="javascript:void(0);" onclick="issue_desc_editor.sync();$('#issue-form').submit();" class="sy_btn_blue mr5 fr" id="issue_confirm"> 保存</a>-->
|
||||
<input onclick="issue_desc_editor.sync();$('#issue-form').submit();" class="sy_btn_blue fr mr5" id="issue_confirm" style="width: 28px;color: #FFF" value="保存">
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="fl pro_new_conbox_right ml10 mb10">
|
||||
|
|
|
@ -91,6 +91,10 @@ function addFile_board(inputEl, file, eagerUpload, id,btnId) {
|
|||
function addFile(inputEl, file, eagerUpload,btnId) {
|
||||
|
||||
var attachments_frame = '#attachments_fields';
|
||||
// $("#issue_confirm").attr('href', '#');
|
||||
$('#issue_confirm').attr("disabled",true);
|
||||
$('#issue_confirm').css('background-color','#c1c1c1');
|
||||
$('#issue_confirm').css('cursor','default');
|
||||
if (true) {
|
||||
deleteallfiles = $(inputEl).data('deleteAllFiles');
|
||||
var attachmentId = addFile.nextAttachmentId++;
|
||||
|
|
|
@ -704,6 +704,21 @@ a.sy_btn_blue{
|
|||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
input.sy_btn_blue{
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
background: #3b94d6;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
padding:0 15px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
cursor:pointer;
|
||||
}
|
||||
a:hover.sy_btn_blue{ background: #2788d0;}
|
||||
a.hw_btn_blue{
|
||||
display: inline-block;
|
||||
|
|
Loading…
Reference in New Issue