Fix use of reposition when nojs for confirmation popup
This commit is contained in:
parent
2bc417fcf7
commit
689f5dd1fe
@ -4868,7 +4868,7 @@ class Form
|
|||||||
$more .= $moreonecolumn;
|
$more .= $moreonecolumn;
|
||||||
}
|
}
|
||||||
|
|
||||||
// JQUI method dialog is broken with jmobile, we use standard HTML.
|
// JQUERY method dialog is broken with smartphone, we use standard HTML.
|
||||||
// Note: When using dol_use_jmobile or no js, you must also check code for button use a GET url with action=xxx and check that you also output the confirm code when action=xxx
|
// Note: When using dol_use_jmobile or no js, you must also check code for button use a GET url with action=xxx and check that you also output the confirm code when action=xxx
|
||||||
// See page product/card.php for example
|
// See page product/card.php for example
|
||||||
if (!empty($conf->dol_use_jmobile)) {
|
if (!empty($conf->dol_use_jmobile)) {
|
||||||
|
|||||||
@ -1269,7 +1269,7 @@ class FormFile
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table width="100%" id="tablelines" class="liste noborder nobottom">'."\n";
|
print '<table id="tablelines" class="centpercent liste noborder nobottom">'."\n";
|
||||||
|
|
||||||
if (!empty($addfilterfields)) {
|
if (!empty($addfilterfields)) {
|
||||||
print '<tr class="liste_titre nodrag nodrop">';
|
print '<tr class="liste_titre nodrag nodrop">';
|
||||||
@ -1504,7 +1504,7 @@ class FormFile
|
|||||||
if (!empty($conf->global->MAIN_ECM_DISABLE_JS)) {
|
if (!empty($conf->global->MAIN_ECM_DISABLE_JS)) {
|
||||||
$useajax = 0;
|
$useajax = 0;
|
||||||
}
|
}
|
||||||
print '<a href="'.((($useinecm && $useinecm != 6) && $useajax) ? '#' : ($url.'?action=deletefile&token='.newToken().'&urlfile='.urlencode($filepath).$param)).'" class="reposition deletefilelink" rel="'.$filepath.'">'.img_delete().'</a>';
|
print '<a href="'.((($useinecm && $useinecm != 6) && $useajax) ? '#' : ($url.'?action=deletefile&token='.newToken().'&urlfile='.urlencode($filepath).$param)).'" class="'.($useajax ? 'reposition ' : '').'deletefilelink" rel="'.$filepath.'">'.img_delete().'</a>';
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ if ($action == 'deletefile') {
|
|||||||
$langs->trans('ConfirmDeleteFile'),
|
$langs->trans('ConfirmDeleteFile'),
|
||||||
'confirm_deletefile',
|
'confirm_deletefile',
|
||||||
'',
|
'',
|
||||||
0,
|
'',
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user