From d199cade630343e7eae7e68dfae6893cb9e92973 Mon Sep 17 00:00:00 2001 From: chenbiao Date: Thu, 26 Jul 2018 15:56:51 +0800 Subject: [PATCH] add --- topages/workfill/workfill.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/topages/workfill/workfill.js b/topages/workfill/workfill.js index 5ff411b..c476b0c 100644 --- a/topages/workfill/workfill.js +++ b/topages/workfill/workfill.js @@ -51,8 +51,12 @@ $('#time-opr-nextbtn').on('click',function () { $('.workfill-list-btn').on('click',function () { var _this=$(this); console.log(_this); - _this.text('编辑'); - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); + if($('.workfill-projectCon').hasClass('display-none')){ + _this.text('提交'); + }else { + _this.text('编辑'); + } + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); }); -- libgit2 0.21.4