Commit 98ffefba by NGUYEN HOANG SON

fix operation category multi level

parent 84c4489d
...@@ -310,7 +310,7 @@ OL.createCategoryList = function () { ...@@ -310,7 +310,7 @@ OL.createCategoryList = function () {
allChecked = ' checked'; allChecked = ' checked';
} }
const allCategory = $( const allCategory = $(
'<ul><li><label><input type="radio" name="category" value="0"' + allChecked + '><span class="lang" lang="categoryAll">' + I18N.i18nText('categoryAll') + '</span></label></li></ul>', '<ul><li><label><input type="radio" name="category" value="0"' + allChecked + '> <span>' + I18N.i18nText('categoryAll') + '</span></label></li></ul>',
); );
categoryListElement.append(allCategory); categoryListElement.append(allCategory);
//create category(operationGroupMaster) structure //create category(operationGroupMaster) structure
...@@ -324,6 +324,7 @@ OL.createCategoryList = function () { ...@@ -324,6 +324,7 @@ OL.createCategoryList = function () {
} }
let groupSpan = $('<span>' + item.operationGroupMasterName + '</span>'); let groupSpan = $('<span>' + item.operationGroupMasterName + '</span>');
inputLabel.append(inputRadio); inputLabel.append(inputRadio);
inputLabel.append(' ');
inputLabel.append(groupSpan); inputLabel.append(groupSpan);
const isParent = OL.operationGroupMaster.find(function(child) { const isParent = OL.operationGroupMaster.find(function(child) {
return item.operationGroupMasterId == child.parentOperationGroupMasterId; return item.operationGroupMasterId == child.parentOperationGroupMasterId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment