added config root to attention bar and imgcaptcha

This commit is contained in:
asiekierka 2012-12-24 18:22:23 +01:00
parent 5556990b94
commit 146859f94a
2 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,7 @@
$(document).ready(function(){
$("#attention_bar").click(function(eO){ $("#attention_bar").css("display","none");
$("#attention_bar_form").css("display","block"); });
$.get("/attentionbar.txt", function(data) {
$.get(configRoot + "attentionbar.txt", function(data) {
$("#attention_bar").text(data);
$("#attention_bar_input").val(data);
});

View File

@ -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