1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

cleanup markup in some plugins, make nsfw generate dijit widgets

This commit is contained in:
Andrew Dolgov
2021-02-16 22:07:37 +03:00
parent 89e8176c69
commit 0fc783e2b3
5 changed files with 82 additions and 90 deletions

View File

@@ -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'" : "";