This commit is contained in:
wangyidong
2022-06-16 16:19:03 +08:00
parent 03dfe512ef
commit d5bdb62738
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -12,3 +12,5 @@ tbody.sortable > tr > td.sort-handler {color: #3c4353 !important;}
.has-prefix > a {padding-left: 5px;}
.has-suffix > a {max-width: calc(100% - 100px); padding-right: 5px; color: #0c60e1; display: inline-block; max-width: calc(100% - 50px);}
div.checkbox-primary + span.table-nest-icon {margin-left:0px !important;}
+2 -2
View File
@@ -54,9 +54,9 @@ function showEditCheckbox(show)
projectID = $tr.attr('data-id');
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').prepend("<div class='checkbox-primary'><input type='checkbox' name='projectIdList[]' value='" + projectID + "' id='projectIdList" + projectID + "'/><label for='projectIdList" + projectID + "'></lable></div>");
$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');
}