From 146859f94a5d3112f5c88b3e4221324cf74be4c4 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Mon, 24 Dec 2012 18:22:23 +0100 Subject: added config root to attention bar and imgcaptcha --- js/imgcaptcha.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'js/imgcaptcha.js') diff --git a/js/imgcaptcha.js b/js/imgcaptcha.js index 8d3ed95c..99aad414 100644 --- a/js/imgcaptcha.js +++ b/js/imgcaptcha.js @@ -1,15 +1,11 @@ -//function obecnyCzas() { -// return Math.round(new Date().getTime() / 1000); -//} - function ic_odswiezKapcze() { - $.get("/imgcaptcha_p.php", function(data) { + $.get(configRoot + "imgcaptcha_p.php", function(data) { $("#imgcaptcha_hash").val(data); - $("#imgcaptcha_img").prop("src","/imgcaptcha_im.php?cr=" + data); + $("#imgcaptcha_img").prop("src",configRoot + "imgcaptcha_im.php?cr=" + data); }); } //function resetujKapcze() { -// $("#imgcaptcha_img").prop("src","/zakrytek.png"); +// $("#imgcaptcha_img").prop("src",configRoot + "zakrytek.png"); //} //$(document).ready(function(){ // //resetujKapcze(); - to nie powinno byc na razie potrzebne -- cgit v1.3