af_redditimgur: update prefs markup

This commit is contained in:
Andrew Dolgov 2019-03-05 19:45:48 +03:00
parent 1f2c769c5a
commit 2b54413599
1 changed files with 12 additions and 7 deletions

View File

@ -37,9 +37,9 @@ class Af_RedditImgur extends Plugin {
print_error("Readability requires PHP version 5.6.");
}
print "<form dojoType=\"dijit.form.Form\">";
print "<form dojoType='dijit.form.Form'>";
print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\">
print "<script type='dojo/method' event='onSubmit' args='evt'>
evt.preventDefault();
if (this.validate()) {
console.log(dojo.objectToQuery(this.getValues()));
@ -57,14 +57,19 @@ class Af_RedditImgur extends Plugin {
print_hidden("method", "save");
print_hidden("plugin", "af_redditimgur");
print "<fieldset class='narrow'>";
print "<label class='checkbox'>";
print_checkbox("enable_readability", $enable_readability);
print "&nbsp;<label for=\"enable_readability\">" . __("Extract missing content using Readability") . "</label>";
print "<br/>";
print " " . __("Extract missing content using Readability") . "</label>";
print "</fieldset>";
print "<fieldset class='narrow'>";
print "<label class='checkbox'>";
print_checkbox("enable_content_dupcheck", $enable_content_dupcheck);
print "&nbsp;<label for=\"enable_content_dupcheck\">" . __("Enable additional duplicate checking") . "</label>";
print "<p>"; print_button("submit", __("Save"));
print " " . __("Enable additional duplicate checking") . "</label>";
print "</fieldset>";
print_button("submit", __("Save"), 'class="alt-primary"');
print "</form>";
print "</div>";