From a2c75257f191d218dae6de8e5e4ad240a0588654 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Feb 2021 13:16:55 +0300 Subject: bookmarklets: cleanup --- include/controls.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/controls.php b/include/controls.php index d8506877b..a60b1e0b0 100755 --- a/include/controls.php +++ b/include/controls.php @@ -23,7 +23,7 @@ } function button_tag(string $value, string $type, array $attributes = []) { - return ""; + return ""; } function submit_tag(string $value, array $attributes = []) { @@ -34,6 +34,10 @@ return button_tag($value, "", array_merge(["onclick" => "App.dialogOf(this).hide()"], $attributes)); } + function icon(string $icon, array $attributes = []) { + return "$icon"; + } + 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