Removed test preferences field. Added reference to jsonlint.com to README.
This commit is contained in:
@@ -51,3 +51,6 @@ The *array key* is part of the URL of the article links(!). You'll notice the `g
|
||||
The **type** has to be `xpath` for now. Maybe there will be more types in the future.
|
||||
|
||||
The **xpath** value is the actual Xpath-element to fetch from the linked page.
|
||||
|
||||
|
||||
If you get an error about "Invalid JSON!", you can use [JSONLint](http://jsonlint.com/) to locate the erroneous part.
|
||||
|
||||
@@ -98,7 +98,6 @@ class Af_Feedmod extends Plugin implements IHandler
|
||||
function index()
|
||||
{
|
||||
global $pluginhost;
|
||||
$sometext = $pluginhost->get($this, "sometext");
|
||||
$json_conf = $pluginhost->get($this, 'json_conf');
|
||||
|
||||
print "<form dojoType=\"dijit.form.Form\">";
|
||||
@@ -121,13 +120,6 @@ class Af_Feedmod extends Plugin implements IHandler
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"save\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"plugin\" value=\"af_feedmod\">";
|
||||
|
||||
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
||||
|
||||
print "<tr><td width=\"40%\">".__("Some text")."</td>";
|
||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"sometext\" value=\"$sometext\"></td></tr>";
|
||||
|
||||
print "</table>";
|
||||
|
||||
print "<table width='100%'><tr><td>";
|
||||
print "<textarea dojoType=\"dijit.form.SimpleTextarea\" name=\"json_conf\" style=\"font-size: 12px; width: 99%; height: 500px;\">$json_conf</textarea>";
|
||||
print "</td></tr></table>";
|
||||
|
||||
Reference in New Issue
Block a user