Commit d199cade630343e7eae7e68dfae6893cb9e92973

Authored by Andy
1 parent f82f8f55

add

Showing 1 changed file with 7 additions and 3 deletions
topages/workfill/workfill.js
... ... @@ -51,8 +51,12 @@ $('#time-opr-nextbtn').on('click',function () {
51 51 $('.workfill-list-btn').on('click',function () {
52 52 var _this=$(this);
53 53 console.log(_this);
54   - _this.text('编辑');
55   - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
56   - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none');
  54 + if($('.workfill-projectCon').hasClass('display-none')){
  55 + _this.text('提交');
  56 + }else {
  57 + _this.text('编辑');
  58 + }
  59 + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none');
  60 + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none');
57 61  
58 62 });
... ...