summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--init.php8
2 files changed, 3 insertions, 8 deletions
diff --git a/README.md b/README.md
index b67a8b5..3298043 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/init.php b/init.php
index da8e24e..e4b93fe 100644
--- a/init.php
+++ b/init.php
@@ -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>";