Vergleich jscripts/captcha.js - 1.8.0 - 1.8.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
var captcha = {
refresh: function()
{

var captcha = {
refresh: function()
{

		imagehash = $("#imagehash");
var imagehash_value = imagehash.attr("value");

		var imagehash_value = $('#imagehash').val();



$.ajax(
{
url: 'xmlhttp.php?action=refresh_captcha&imagehash='+imagehash_value,


$.ajax(
{
url: 'xmlhttp.php?action=refresh_captcha&imagehash='+imagehash_value,

			async: true,

 
			method: 'get',
dataType: 'json',
complete: function (request)

			method: 'get',
dataType: 'json',
complete: function (request)

Zeile 26Zeile 24
		{
$.each(json.errors, function(i, message)
{

		{
$.each(json.errors, function(i, message)
{

				$.jGrowl(lang.captcha_fetch_failure + ' ' + message);

				$.jGrowl(lang.captcha_fetch_failure + ' ' + message, {theme:'jgrowl_error'});

			});
}
else if(json.imagehash)
{
$("#captcha_img").attr("src", "captcha.php?action=regimage&imagehash=" + json.imagehash);

			});
}
else if(json.imagehash)
{
$("#captcha_img").attr("src", "captcha.php?action=regimage&imagehash=" + json.imagehash);

			imagehash.attr("value", json.imagehash);

			$('#imagehash').val(json.imagehash);

		}


		}


		var imagestring_status = $("#imagestring_status");

imagestring_status.removeClass("validation_success")
.removeClass("validation_error")
.removeClass("validation_loading")
.html("")
.hide();

var imagestring = $("#imagestring");

imagestring.addClass("textbox").attr("value", "");

		$('#imagestring').removeClass('error valid').val('').removeAttr('aria-invalid').removeData('previousValue')
.next('label').remove();










	}
};

	}
};