Vergleich admin/jscripts/search.js - 1.8.6 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
	{
this.error_unknown = error_unknown;


	{
this.error_unknown = error_unknown;


		$('#settings_search').bind("submit", this.onSubmit);

		$('#settings_search').on("submit", this.onSubmit);

		$('#search_results').css('display', 'none');

$('#search').focusin(function() {

		$('#search_results').css('display', 'none');

$('#search').focusin(function() {

Zeile 33Zeile 33
		e.preventDefault();
if($('#search').val() != "")
{

		e.preventDefault();
if($('#search').val() != "")
{

			$.jGrowl(lang.searching);

			$.jGrowl(lang.searching, {theme:'jgrowl_process'});

			pars = "module=config-settings&action=change&ajax_search=1&search="+encodeURIComponent($('#search').val());
$.ajax({
type: 'get',

			pars = "module=config-settings&action=change&ajax_search=1&search="+encodeURIComponent($('#search').val());
$.ajax({
type: 'get',

Zeile 43Zeile 43
				{
try
{

				{
try
{

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

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

						if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

						if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

Zeile 52Zeile 52

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


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

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

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

								});
return false;
}

								});
return false;
}

Zeile 63Zeile 63
						$('#search_results').css('display', '');
$('#group_list').css('display', 'none');
$('#search_results').html(request.responseText);

						$('#search_results').css('display', '');
$('#group_list').css('display', 'none');
$('#search_results').html(request.responseText);

						loadPeekers();
$.jGrowl(lang.search_done);

						$.jGrowl(lang.search_done, {theme:'jgrowl_success'});


						return false;
}
}

						return false;
}
}