attachment:function setRemoveButton(e) { var removeButt..."/>
您好,登錄后才能下訂單哦!
Control remove button behavior in Manage Attachments dialog
UI page->attachment:
function setRemoveButton(e) { var removeButton = gel("removeButton"); var deletedSysIdsElement = gel("deleted_sys_ids"); var deletedSysIds = new Array(); var deletedString = deletedSysIdsElement.value; if (deletedString) deletedSysIds = deletedString.split(";"); var thisId = e.name.substring(7); if (e.checked) { removeButton.disabled = ""; deletedSysIds.push(thisId); } else { var index = deletedSysIds.indexOf(thisId); deletedSysIds.splice(index, 1); // are there any left checked? var inputs = document.getElementsByTagName("input"); var nonechecked = true; var i = 0; while(i < inputs.length && nonechecked) { if (inputs[i].type == "checkbox" && inputs[i].name.substring(0, 7) == "sys_id_") if (inputs[i].checked) nonechecked = false; i++; } if (nonechecked) { removeButton.disabled = "true"; } } deletedSysIds = deletedSysIds.join(";"); deletedSysIdsElement.value = deletedSysIds; //Added by jason 2017/12/18 if(!g_user.hasRole('itil')){ removeButton.disabled = "true"; } }
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。