Vergleich jscripts/inline_moderation.js - 1.6.0 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 35Zeile 35
				inlineCheck = element.id.split("_");
id = inlineCheck[1];


				inlineCheck = element.id.split("_");
id = inlineCheck[1];


				if(inlineIds.indexOf(id) != -1)






				if(inlineIds.indexOf('ALL') != -1)
{
inlineModeration.clearChecked();
inlineCookie = null;
}
else if(inlineIds.indexOf(id) != -1)

				{
element.checked = true;
var tr = element.up('tr');
var fieldset = element.up('fieldset');

				{
element.checked = true;
var tr = element.up('tr');
var fieldset = element.up('fieldset');

					

					

					if(tr)
{
tr.addClassName('trow_selected');

					if(tr)
{
tr.addClassName('trow_selected');

Zeile 49Zeile 54
					if(fieldset)
{
fieldset.addClassName('inline_selected');

					if(fieldset)
{
fieldset.addClassName('inline_selected');

					}
}

					}
}

				else
{
element.checked = false;

				else
{
element.checked = false;

Zeile 58Zeile 63
					if(tr)
{
tr.removeClassName('trow_selected');

					if(tr)
{
tr.removeClassName('trow_selected');

					}
}
}
}

					}
}
}
}

		
if(inlineCookie)
{

		
if(inlineCookie)
{

Zeile 73Zeile 78
					if(item != '') inlineCount++;
});
inlineModeration.inlineCount = inlineCount;

					if(item != '') inlineCount++;
});
inlineModeration.inlineCount = inlineCount;

			}

			}

			goButton.value = go_text+" ("+(inlineModeration.inlineCount)+")";
}
return true;
},

			goButton.value = go_text+" ("+(inlineModeration.inlineCount)+")";
}
return true;
},





	checkItem: function(e)
{
element = Event.element(e);

if(!element)

	checkItem: function(e)
{
element = Event.element(e);

if(!element)

		{
return false;

		{
return false;

		}

inlineCheck = element.id.split("_");

		}

inlineCheck = element.id.split("_");

Zeile 97Zeile 102
		}

var newIds = new Array();

		}

var newIds = new Array();

 
		var remIds = new Array();

		inlineCookie = Cookie.get(inlineModeration.cookieName);

if(inlineCookie)

		inlineCookie = Cookie.get(inlineModeration.cookieName);

if(inlineCookie)

Zeile 123Zeile 129
				tr.addClassName('trow_selected');
}
}

				tr.addClassName('trow_selected');
}
}

		else



















		else
{
inlineModeration.inlineCount--;
var tr = element.up('tr');
if(tr)
{
tr.removeClassName('trow_selected');
}

if(inlineCookie.indexOf("ALL") != -1)
{
// We've already selected all threads, add this to our "no-go" cookie
remIds[remIds.length] = id;
}
}

goButton = $("inline_go");

if(remIds.length)

		{

		{

 
			inlineData = "|"+remIds.join("|")+"|";
Cookie.set(inlineModeration.cookieName + '_removed', inlineData, 3600000);

// Get the right count for us
var count = goButton.value.replace(/[^\d]/g, '');
inlineModeration.inlineCount = count;

			inlineModeration.inlineCount--;

			inlineModeration.inlineCount--;

			var tr = element.up('tr');
if(tr)
{
tr.removeClassName('trow_selected');
}

 
		}

		}


inlineData = "|"+newIds.join("|")+"|";
goButton = $("inline_go");



		else
{
inlineData = "|"+newIds.join("|")+"|";
Cookie.set(inlineModeration.cookieName, inlineData, 3600000);
}


if(inlineModeration.inlineCount < 0)
{


if(inlineModeration.inlineCount < 0)
{

Zeile 142Zeile 169
		}

goButton.value = go_text+" ("+inlineModeration.inlineCount+")";

		}

goButton.value = go_text+" ("+inlineModeration.inlineCount+")";

		Cookie.set(inlineModeration.cookieName, inlineData, 3600000);

 

return true;
},


return true;
},

Zeile 171Zeile 197
		$H(inputs).each(function(element) {
var element = element.value;
if(!element.value) return;

		$H(inputs).each(function(element) {
var element = element.value;
if(!element.value) return;

			if((element.name != "allbox") && (element.type == "checkbox") && (element.id.split("_")[0] == "inlinemod"))

			if(element.type == "checkbox" && (element.id.split("_")[0] == "inlinemod" || element.name == "allbox"))

			{
element.checked = false;
}

			{
element.checked = false;
}

Zeile 189Zeile 215
		goButton = $("inline_go");
goButton.value = go_text+" (0)";
Cookie.unset(inlineModeration.cookieName);

		goButton = $("inline_go");
goButton.value = go_text+" (0)";
Cookie.unset(inlineModeration.cookieName);

 
		Cookie.unset(inlineModeration.cookieName + '_removed');


return true;
},


return true;
},