|
@@ -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>)
|