1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Display name of the object in confirmation when dropping it

This commit is contained in:
Jakub Vrana
2018-01-24 18:13:05 +01:00
parent 921e57b9aa
commit 95d02bb924
13 changed files with 15 additions and 13 deletions

View File

@@ -221,10 +221,11 @@ function select_input($attrs, $options, $value = "", $onchange = "", $placeholde
/** Get onclick confirmation
* @param string
* @param string
* @return string
*/
function confirm($selector = "qsl('input')") {
return script("$selector.onclick = function () { return confirm('" . lang('Are you sure?') . "'); };", "");
function confirm($message = "", $selector = "qsl('input')") {
return script("$selector.onclick = function () { return confirm('" . ($message ? js_escape($message) . ". " : "") . lang('Are you sure?') . "'); };", "");
}
/** Print header for hidden fieldset (close by </div></fieldset>)