diff --git a/topages/workfill/workfill.js b/topages/workfill/workfill.js
index 06762ff..1c7b011 100644
--- a/topages/workfill/workfill.js
+++ b/topages/workfill/workfill.js
@@ -146,7 +146,7 @@ var fun = {
$("#work-projectName"+row.weeksNum).selectpicker('val',row.projectId);
$("#work-projectName"+row.weeksNum).selectpicker('refresh');
- $("#btn-commit"+row.weeksNum).text('编辑');
+ $("#btn-commit"+row.weeksNum).html('编辑');
$("#btn-commit"+row.weeksNum).parent().parent().find(".workfill-list-container").attr("contenteditable","false");
$("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
var projectName=$("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
@@ -169,6 +169,7 @@ var fun = {
$('.ITD-alertmodel-contentmsg').text('');
$('#ITD-tipsmodel').modal('hide');
},3000);
+ _this.removeAttr("disabled");
return false;
}else{
var req= {
@@ -188,12 +189,13 @@ var fun = {
if(res.success == true){
var asraId = res.data;
$("#weekday"+id).attr("data-id",asraId);
- _this.text('编辑');
+ _this.html('编辑');
_this.parent().parent().find(".workfill-list-container").attr("contenteditable","false");
_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none');
_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName);
+ _this.removeAttr("disabled");
}else{
$('.ITD-alertmodel-contentmsg').text('提交失败!');
@@ -202,6 +204,7 @@ var fun = {
$('.ITD-alertmodel-contentmsg').text('');
$('#ITD-tipsmodel').modal('hide');
},3000);
+ _this.removeAttr("disabled");
return false;
}
}
@@ -229,7 +232,7 @@ documentBindFunc.on('click','#time-opr-nextbtn',function () {
documentBindFunc.on('click','.workfill-list-btn',function () {
var _this=$(this);
if(_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')){
- _this.text('提交');
+ _this.html('提交');
_this.parent().parent().find(".workfill-list-container").attr("contenteditable","true");
_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none');
var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
@@ -237,6 +240,7 @@ documentBindFunc.on('click','.workfill-list-btn',function () {
_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName);
}else {
+ _this.attr("disabled","disabled");
var commitId = _this.attr("id");
var id = commitId.substring(10,11);
fun.dailyReportCommit(id,_this);