From 0fc783e2b350b8ac6ff275fd9b201674cbcf2c16 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Feb 2021 22:07:37 +0300 Subject: cleanup markup in some plugins, make nsfw generate dijit widgets --- include/controls.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/controls.php') 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'" : ""; -- cgit v1.2.3-54-g00ecf