mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fixes #4631 - Edit button modal caption and submit button issue.
This commit is contained in:
@@ -5056,13 +5056,9 @@ var_dump($select_options);*/
|
|||||||
$eModalCap = null;
|
$eModalCap = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($parms['modalSubmit']))
|
|
||||||
{
|
|
||||||
$eModalCap .= " data-modal-submit='true'";
|
|
||||||
}
|
|
||||||
|
|
||||||
$query = http_build_query($query);
|
$query = http_build_query($query);
|
||||||
$text .= "<a" . $this->attributes([
|
|
||||||
|
$att = [
|
||||||
'href' => e_SELF . "?$query",
|
'href' => e_SELF . "?$query",
|
||||||
'class' => "btn btn-default btn-secondary$eModal",
|
'class' => "btn btn-default btn-secondary$eModal",
|
||||||
'data-modal-caption' => $eModalCap,
|
'data-modal-caption' => $eModalCap,
|
||||||
@@ -5070,8 +5066,14 @@ var_dump($select_options);*/
|
|||||||
'data-toggle' => 'tooltip',
|
'data-toggle' => 'tooltip',
|
||||||
'data-bs-toggle' => 'tooltip',
|
'data-bs-toggle' => 'tooltip',
|
||||||
'data-placement' => 'left',
|
'data-placement' => 'left',
|
||||||
]) . ">
|
];
|
||||||
" . $editIconDefault . '</a>';
|
|
||||||
|
if (!empty($parms['modalSubmit']))
|
||||||
|
{
|
||||||
|
$att['data-modal-submit'] = 'true';
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= '<a' . $this->attributes($att) . '>' . $editIconDefault . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$delcls = !empty($attributes['noConfirm']) ? ' no-confirm' : '';
|
$delcls = !empty($attributes['noConfirm']) ? ' no-confirm' : '';
|
||||||
|
Reference in New Issue
Block a user