* adjust for edit project in program.

This commit is contained in:
王怡栋
2021-09-09 14:33:09 +08:00
parent f54cf01c04
commit 5617d3b89d
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -55,9 +55,15 @@ function showEditCheckbox(show)
if(show)
{
$tr.find('td:first').prepend("<div class='checkbox-primary'><input type='checkbox' name='projectIdList[]' value='" + projectID + "' id='projectIdList" + projectID + "'/><label for='projectIdList" + projectID + "'></lable></div>");
var marginLeft = $tr.find('td:first').find('span.table-nest-icon').css('margin-left');
$tr.find('td:first').find('.checkbox-primary').css('margin-left', marginLeft).css('width', '14');
$tr.find('td:first').find('span.table-nest-icon').css('margin-left', '0');
}
else
{
var marginLeft = $tr.find('td:first').find('.checkbox-primary').css('margin-left');
$tr.find('td:first').find('span.table-nest-icon').css('margin-left', marginLeft);
$tr.find('td:first').find('[name^="projectIdList"]').parent().remove();
}
});