//确定修改 sureamendJob:function( flg,id ){ $.post($(flg).parents('form.workForm_Edit').attr('action'), $(flg).parents('form.workForm_Edit').formToArray(), function (result) { if (result.err){ $.alert(result.err); }else{ var elems = $(flg).parents('div.i_white_bg').find('ul:first'); var elLi = elems.find('li:eq(0)'),elLival = elLi.find(':text').val(), elLi_v2 = elems.find('li:eq(1)'), elLi_v2Val = elLi_v2.find('select')[0].options[elLi_v2.find('select')[0].selectedIndex].text, elLast = elems.find('li:last'),elLastSatrtVal = elLast.find('select:first').val(),elLastEndVal = elLast.find('select:last').val() elLi.html(elLival) .attr('data-txt',elLival); elLi_v2.html(elLi_v2Val) .attr('data-txt',elLi_v2Val); elLast.html(elLastSatrtVal+' ' + _t('年') + ' '+(elLastEndVal == -1 ? _t('至今'): _t('至') + ' '+elLastEndVal+' ' + _t('年'))) .attr('data-start-value',elLastSatrtVal) .attr('data-end-value',elLastEndVal); $(flg).html(_t('编辑')).attr('onclick','$.set.amendJobs(this,'+id+')'); } }, 'json'); } //end
AI智能回复搜索中,请稍后...