summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 22:07:37 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 22:07:37 +0300
commit0fc783e2b350b8ac6ff275fd9b201674cbcf2c16 (patch)
treee3b88e90f25d40791acb01e178acded2d0d994a7 /include/controls.php
parent89e8176c6912f757f400dd47d3495502db0b7322 (diff)
cleanup markup in some plugins, make nsfw generate dijit widgets
Diffstat (limited to 'include/controls.php')
-rwxr-xr-xinclude/controls.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/controls.php b/include/controls.php
index 78ff75572..4c60d94f3 100755
--- a/include/controls.php
+++ b/include/controls.php
@@ -19,6 +19,10 @@
return button_tag($value, "submit", array_merge(["class" => "alt-primary"], $attributes));
}
+ function cancel_dialog_tag(string $value, array $attributes = []) {
+ return button_tag($value, "", array_merge(["onclick" => "App.dialogOf(this).hide()"], $attributes));
+ }
+
function select_tag(string $name, $value, array $values, array $attributes = [], string $id = "") {
$attributes_str = attributes_to_string($attributes);
$dojo_type = strpos($attributes_str, "dojoType") === false ? "dojoType='fox.form.Select'" : "";