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:
@@ -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'" : "";
|
||||
|
||||
Reference in New Issue
Block a user