1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

No AJAX in drop table, drop database and logout

This commit is contained in:
Jakub Vrana
2010-11-26 10:53:05 +01:00
parent 8194002102
commit b7cd6520af
5 changed files with 21 additions and 7 deletions

View File

@@ -137,10 +137,11 @@ function html_select($name, $options, $value = "", $onchange = true) {
/** Get onclick confirmation
* @param string JavaScript expression
* @param bool stop event propagation
* @return string
*/
function confirm($count = "") {
return " onclick=\"return confirm('" . lang('Are you sure?') . ($count ? " (' + $count + ')" : "") . "');\"";
function confirm($count = "", $stop = false) {
return " onclick=\"" . ($stop ? "eventStop(event); " : "") . "return confirm('" . lang('Are you sure?') . ($count ? " (' + $count + ')" : "") . "');\"";
}
/** Escape string for JavaScript apostrophes