From 4662cdf976fa1de4b00965a921a25c36600b4843 Mon Sep 17 00:00:00 2001 From: Idealcoder Date: Fri, 9 Aug 2013 12:03:59 +0100 Subject: [PATCH] Fixing image click not reacting on toggle off --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 33e5c2d..1ddc659 100644 --- a/index.php +++ b/index.php @@ -192,7 +192,7 @@ function imageclick(elem){ var array = $.toJSON( thing ); - if ($(elem).attr("class")=="cdiuceducfeu") { + $.getJSON('api.php?type=translate&array='+array+'&from='+$("input[type='radio'].leftradio:checked").val()+'&to='+$("input[type='radio'].rightradio:checked").val(), function(data) { @@ -210,7 +210,7 @@ function imageclick(elem){ }); - } + }