summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-16 09:20:57 +0300
committerAndrew Dolgov <[email protected]>2019-08-16 09:20:57 +0300
commitf8f8dd4cae8c4c58ee68d1ca6253b6991126c0df (patch)
tree95ee440ef01365a7fed3ef1f0929f3ca8724a9c9 /init.php
parente342351584e293a18dca7addb2943e0c2e9bb375 (diff)
show correct class name for similar dialog, remove JS code from global context
Diffstat (limited to 'init.php')
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 80bf8f9..5b821f2 100755
--- a/init.php
+++ b/init.php
@@ -220,7 +220,7 @@ class Af_Img_Phash extends Plugin {
if (!$api_mode) {
$b = $doc->createElement("a");
$b->setAttribute("href", "#");
- $b->setAttribute("onclick", "showPhashSimilar(this)");
+ $b->setAttribute("onclick", "Plugins.Af_Img_Phash.showSimilar(this)");
$b->setAttribute("data-check-url", $this->absolutize_url($check_uri));
$b->appendChild(new DOMText("(similar)"));