* Refactor the UI template of stage edit page.

This commit is contained in:
chentao
2023-07-18 16:26:38 +08:00
parent e8c04b5584
commit 8a6838bed3
3 changed files with 97 additions and 162 deletions
+4 -6
View File
@@ -5,17 +5,15 @@
* @param stageID stageID
* @return void
*/
function changeParentStage(stageID)
function changeParentStage(event)
{
const stageID = parseInt($(event.target).val());
if(stageID == 0) $('#acl').attr('disabled', false);
$('#acl').attr('disabled', true);
$.get(createLink('programplan', 'ajaxGetAttribute', 'stageID=' + stageID + '&attribute=' + plan.attribute), function(attribute)
$.get($.createLink('programplan', 'ajaxGetAttribute', 'stageID=' + stageID + '&attribute=' + plan.attribute), function(attribute)
{
$('#attributeType td:first').html(attribute);
$('#attribute' + '_chosen').remove();
$('#attribute').next('.picker').remove();
$('#attribute').chosen();
$('#attributeType').html(attribute);
});
}