* Fix bug #50265, locate to product::create in modal.

This commit is contained in:
liumengyi
2024-05-28 16:02:32 +08:00
parent db98d92009
commit feb9c66f96
2 changed files with 6 additions and 15 deletions
-5
View File
@@ -130,8 +130,3 @@ function toggleExecution(multiple)
{
$('#executionIdBox').closest('tr').toggleClass('hidden', !multiple);
}
function createProduct()
{
loadModal($.createLink('product', 'create'), '.m-my-todo');
}
+6 -10
View File
@@ -38,16 +38,12 @@ if(hasPriv('story', 'create') && $config->vision != 'lite')
span($lang->product->noProduct),
btn
(
$lang->product->create,
set
(
array(
'id' => 'createProductBtn',
'class' => 'secondary-pale',
'icon' => 'plus'
)
),
on::click('createProduct')
setID('createProductBtn'),
setClass('secondary-pale'),
set::icon('plus'),
set::url($this->createLink('product', 'create')),
setData(array('toggle' => 'modal', 'size' => 'lg')),
$lang->product->create
)
) : form
(