nieuws: apply tag changes to article links in edit mode
[minimedit.git] / nieuws / index.php
index 1a520112da6663f1805f602829469f6c65a1ee99..ad85011716c9825248995d28d4573d12ac67a5c8 100644 (file)
@@ -24,14 +24,14 @@ if ($page and !is_numeric($page)) {
                        $tagtarget = is_writable($tagpath);
                        $taglist[] = sprintf(
                                '<input type="checkbox" name="%s" value="%s" id="%s"%s%s />' .
-                               '<label for="%2$s"> %s</label>',
+                               '<label for="%3$s"> %s</label>',
                                "tags[$tagname]", $tagname, "tag-$tagname",
                                $tagvalue ? ' checked' : '',
-                               ' onclick="return false"',
+                               ' disabled',
                                ucfirst($tagname)
                        );
                }
-               printf("<p><strong>Tags:</strong> %s</p>\n",
+               printf('<p class="tags"><strong>Tags:</strong> %s</p>'."\n",
                        implode("\n\t", $taglist)
                );
        }