Vergleich jscripts/inline_moderation.js - 1.8.2 - 1.8.23

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 9Zeile 9
		inlineModeration.cookieName = 'inlinemod_'+inlineType+inlineId;
var inputs = $('input');


		inlineModeration.cookieName = 'inlinemod_'+inlineType+inlineId;
var inputs = $('input');


		if(!inputs)

		if(!inputs.length)

		{
return false;
}

		{
return false;
}

Zeile 22Zeile 22
			var element = $(this);
if((element.attr('name') != 'allbox') && (element.attr('type') == 'checkbox') && (element.attr('id')) && (element.attr('id').split('_')[0] == 'inlinemod'))
{

			var element = $(this);
if((element.attr('name') != 'allbox') && (element.attr('type') == 'checkbox') && (element.attr('id')) && (element.attr('id').split('_')[0] == 'inlinemod'))
{

				$(element).click(inlineModeration.checkItem);

				$(element).on('click', inlineModeration.checkItem);

			}

if(element.attr('id'))

			}

if(element.attr('id'))

Zeile 35Zeile 35
					if(inlineIds.indexOf(id) != -1 || (inlineIds.indexOf('ALL') != -1 && removedIds.indexOf(id) == -1))
{
element.prop('checked', true);

					if(inlineIds.indexOf(id) != -1 || (inlineIds.indexOf('ALL') != -1 && removedIds.indexOf(id) == -1))
{
element.prop('checked', true);

						var post = element.parents('.post_content');

						var post = element.parents('.post');

						var thread = element.parents('.inline_row');
var fieldset = element.parents('fieldset');

						var thread = element.parents('.inline_row');
var fieldset = element.parents('fieldset');

						if(post.length > 0)

						if(post.length)

						{
post.addClass('trow_selected');
}

						{
post.addClass('trow_selected');
}

						else if(thread.length > 0)

						else if(thread.length)

						{
thread.addClass('trow_selected');
}


						{
thread.addClass('trow_selected');
}


						if(fieldset.length > 0)

						if(fieldset.length)

						{
fieldset.addClass('inline_selected');
}

						{
fieldset.addClass('inline_selected');
}

Zeile 56Zeile 56
					else
{
element.prop('checked', false);

					else
{
element.prop('checked', false);

						var post = element.parents('.post_content');

						var post = element.parents('.post');

						var thread = element.parents('.inline_row');

						var thread = element.parents('.inline_row');

						if(post.length > 0)

						if(post.length)

						{
post.removeClass('trow_selected');
}

						{
post.removeClass('trow_selected');
}

						else if(thread.length > 0)

						else if(thread.length)

						{
thread.removeClass('trow_selected');
}

						{
thread.removeClass('trow_selected');
}

Zeile 131Zeile 131
					}
}
}

					}
}
}

			var post = element.parents('.post_content');

			var post = element.parents('.post');

			var thread = element.parents('.inline_row');

			var thread = element.parents('.inline_row');

			if(post.length > 0)

			if(post.length)

			{
post.addClass('trow_selected');
}

			{
post.addClass('trow_selected');
}

			else if(thread.length > 0)

			else if(thread.length)

			{
thread.addClass('trow_selected');
}

			{
thread.addClass('trow_selected');
}

Zeile 162Zeile 162
					allSelectedRow.hide();
}
}

					allSelectedRow.hide();
}
}

			var post = element.parents('.post_content');

			var post = element.parents('.post');

			var thread = element.parents('.inline_row');

			var thread = element.parents('.inline_row');

			if(post.length > 0)

			if(post.length)

			{
post.removeClass('trow_selected');
}

			{
post.removeClass('trow_selected');
}

			else if(thread.length > 0)

			else if(thread.length)

			{
thread.removeClass('trow_selected');
}

			{
thread.removeClass('trow_selected');
}

Zeile 181Zeile 181

clearChecked: function()
{


clearChecked: function()
{

		var selectRow = $('#selectAllrow');
if(selectRow)
{
selectRow.hide();
}

var allSelectedRow = $('#allSelectedrow');
if(allSelectedRow)
{
allSelectedRow.hide();
}

		$('#selectAllrow').hide();
$('#allSelectedrow').hide();











var inputs = $('input');



var inputs = $('input');


		if(!inputs)

		if(!inputs.length)

		{
return false;
}

		{
return false;
}

Zeile 228Zeile 219
	{
inputs = $('input');
master = $(master);

	{
inputs = $('input');
master = $(master);


if(!inputs)


if(!inputs.length)

		{
return false;
}

		{
return false;
}

Zeile 246Zeile 237
			{
var id = inlineCheck[1];
var changed = (element.prop('checked') != master.prop('checked'));

			{
var id = inlineCheck[1];
var changed = (element.prop('checked') != master.prop('checked'));

				element.prop('checked', master.prop('checked'));

 




				var post = element.parents('.post_content');

				var post = element.parents('.post');

				var fieldset = element.parents('fieldset');
var thread = element.parents('.inline_row');

				var fieldset = element.parents('fieldset');
var thread = element.parents('.inline_row');

				if(post.length > 0)

				if(post.length)

				{
if(master.prop('checked') == true)
{

				{
if(master.prop('checked') == true)
{

Zeile 262Zeile 252
						post.removeClass('trow_selected');
}
}

						post.removeClass('trow_selected');
}
}

				else if(thread.length > 0)

				else if(thread.length)

				{
if(master.prop('checked') == true)
{
thread.addClass('trow_selected');

				{
if(master.prop('checked') == true)
{
thread.addClass('trow_selected');

					}
else
{

					}
else
{

						thread.removeClass('trow_selected');
}
}


						thread.removeClass('trow_selected');
}
}


				if(fieldset.length > 0)

				if(fieldset.length)

				{
if(master.prop('checked') == true)
{

				{
if(master.prop('checked') == true)
{

Zeile 288Zeile 278

if(changed)
{


if(changed)
{

 
					element.trigger('click');


					if(master.prop('checked') == true)
{
if(inlineIds.indexOf('ALL') == -1)

					if(master.prop('checked') == true)
{
if(inlineIds.indexOf('ALL') == -1)

Zeile 319Zeile 311
		if(count < all_text)
{
var selectRow = $('#selectAllrow');

		if(count < all_text)
{
var selectRow = $('#selectAllrow');

			if(selectRow)

			if(selectRow.length)

			{
if(master.prop('checked') == true)
{

			{
if(master.prop('checked') == true)
{

Zeile 334Zeile 326

if(inlineIds.indexOf('ALL') == -1 || removedIds.length != 0)
{


if(inlineIds.indexOf('ALL') == -1 || removedIds.length != 0)
{

			var allSelectedRow = $('#allSelectedrow');
if(allSelectedRow)
{
allSelectedRow.hide();
}

			$('#allSelectedrow').hide();





		}
else if(inlineIds.indexOf('ALL') != -1 && removedIds.length == 0)

		}
else if(inlineIds.indexOf('ALL') != -1 && removedIds.length == 0)

		{
var allSelectedRow = $('#allSelectedrow');
if(allSelectedRow)
{
allSelectedRow.show();
}
}

		{
$('#allSelectedrow').show();
}





	},

selectAll: function()
{
inlineModeration.updateCookies(new Array('ALL'), new Array());


	},

selectAll: function()
{
inlineModeration.updateCookies(new Array('ALL'), new Array());


		var selectRow = $('#selectAllrow');
if(selectRow)
{
selectRow.hide();
}

var allSelectedRow = $('#allSelectedrow');
if(allSelectedRow)
{
allSelectedRow.show();
}

		$('#selectAllrow').hide();
$('#allSelectedrow').show();










	},

getCookie: function(name)

	},

getCookie: function(name)