Vergleich jscripts/inline_moderation.js - 1.8.4 - 1.8.38

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

var inlineModeration = {
init: function()
{

 
		$(function(){
if($("#inlinemoderation_options_selector").length !== 0) {
$("#inlinemoderation_options_selector").on('change', function() {
$("#inlinemoderation_options").trigger('submit');
});

$("#inlinemoderation_options").on('submit', function(){
if($("#inlinemoderation_options_selector").val() == "") {
$.jGrowl(lang.select_tool, {theme:'jgrowl_error'});
return false;
} else if($('input[name^="inlinemod_"]:checked').length === 0) {
$.jGrowl(lang.selected_nil, {theme:'jgrowl_error'});
return false;
}
});
}
});


		if(!inlineType || !inlineId)
{
return false;

		if(!inlineType || !inlineId)
{
return false;

Zeile 22Zeile 40
			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 53
					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');
if(post.length)

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

Zeile 56Zeile 74
					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');
if(post.length)
{

						var thread = element.parents('.inline_row');
if(post.length)
{

Zeile 131Zeile 149
					}
}
}

					}
}
}

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

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

			var thread = element.parents('.inline_row');
if(post.length)
{

			var thread = element.parents('.inline_row');
if(post.length)
{

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

					allSelectedRow.hide();
}
}

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

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

			var thread = element.parents('.inline_row');
if(post.length)
{

			var thread = element.parents('.inline_row');
if(post.length)
{

Zeile 237Zeile 255
			{
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');
if(post.length)

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

Zeile 279Zeile 296

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)