* Fix bug #41229.
This commit is contained in:
@@ -9,3 +9,5 @@
|
||||
#copyProjects .btn.primary-outline span {color: rgba(var(--color-fore-rgb),var(--tw-text-opacity));}
|
||||
.productBox .line-btn {width: 48px; margin-right: 32px;}
|
||||
.productBox div[id^=plan] {flex: 1 1;}
|
||||
#mainContent .input-group.required {position: relative;}
|
||||
#mainContent .input-group.required:after {content: '*'; color: rgba(var(--color-danger-500-rgb),var(--tw-text-opacity)); position: absolute; top: 0.5rem; right: 0.125rem;}
|
||||
|
||||
@@ -140,6 +140,10 @@ window.setParentProgram = function()
|
||||
{
|
||||
const programID = $('[name=parent]').val();
|
||||
const link = $.createLink('project', 'create', 'model=' + model + '&program=' + programID);
|
||||
|
||||
if(programID) $('#linkProduct .input-group').addClass('required');
|
||||
if(programID == 0) $('#linkProduct .input-group.required').removeClass('required');
|
||||
|
||||
loadPage(link, '#aclList');
|
||||
$('select[name^=whitelist]').closest('.form-row').removeClass('hidden')
|
||||
}
|
||||
|
||||
@@ -398,6 +398,7 @@ formPanel
|
||||
set::label($lang->project->manageProducts),
|
||||
inputGroup
|
||||
(
|
||||
$programID ? setClass('required') : null,
|
||||
div
|
||||
(
|
||||
setClass('grow'),
|
||||
@@ -409,7 +410,7 @@ formPanel
|
||||
),
|
||||
div
|
||||
(
|
||||
setClass('flex items-center pl-2 clip newProductBox'),
|
||||
setClass('flex items-center px-2 clip newProductBox'),
|
||||
checkbox
|
||||
(
|
||||
set::name('newProduct'),
|
||||
|
||||
Reference in New Issue
Block a user