Fix style of injected combo to select variant

This commit is contained in:
Laurent Destailleur 2021-02-02 13:12:12 +01:00
parent b80de4aeaf
commit 85357a34c8

View File

@ -2022,7 +2022,7 @@ class Form
return; return;
} }
console.log("After change we get variants"); console.log("A change has started. We get variants fields to inject html select");
jQuery.getJSON("'.DOL_URL_ROOT.'/variants/ajax/getCombinations.php", { jQuery.getJSON("'.DOL_URL_ROOT.'/variants/ajax/getCombinations.php", {
id: jQuery(this).val() id: jQuery(this).val()
@ -2040,8 +2040,7 @@ class Form
span.append( span.append(
jQuery(document.createElement(\'div\')).text(val.label).css({ jQuery(document.createElement(\'div\')).text(val.label).css({
\'font-weight\': \'bold\', \'font-weight\': \'bold\',
\'display\': \'table-cell\', \'display\': \'table-cell\'
\'text-align\': \'right\'
}) })
); );