Vergleich jscripts/captcha.js - 1.8.0 - 1.8.25

  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 21Zeile 19

refresh_complete: function(request)
{


refresh_complete: function(request)
{

		var json = $.parseJSON(request.responseText);

		var json = JSON.parse(request.responseText);

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

		if(json.hasOwnProperty("errors"))
{
$.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('').prop('aria-invalid', null).removeData('previousValue')
.next('label').remove();










	}
};

	}
};