Vergleich jscripts/inline_moderation.js - 1.6.1 - 1.6.13

  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(inlineCheck[0] == "inlinemod")

				{

				{

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

if(tr)

					if(inlineIds.indexOf('ALL') != -1)





					{

					{

						tr.addClassName('trow_selected');


						inlineModeration.clearChecked();
inlineCookie = null;

					}

					}

					
if(fieldset)

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


					{

					{

						fieldset.addClassName('inline_selected');	













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

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

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

					}

					}

				}
else
{
element.checked = false;
var tr = element.up('tr');
if(tr)

					else






					{

					{

						tr.removeClassName('trow_selected');






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

					}
}
}
}


					}
}
}
}


		if(inlineCookie)
{

		if(inlineCookie)
{

			goButton = $("inline_go");
if(inlineIds)
{

			goButton = $("inline_go");
if(inlineIds)
{

Zeile 84Zeile 92
		element = Event.element(e);

if(!element)

		element = Event.element(e);

if(!element)

		{

		{

			return false;
}

			return false;
}





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

if(!id)
{
return false;

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

if(!id)
{
return false;

		}

		}


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 114Zeile 123
		}

if(element.checked == true)

		}

if(element.checked == true)

		{

		{

			inlineModeration.inlineCount++;
newIds[newIds.length] = id;
var tr = element.up('tr');
if(tr)
{

			inlineModeration.inlineCount++;
newIds[newIds.length] = id;
var tr = element.up('tr');
if(tr)
{

				tr.addClassName('trow_selected');
















				tr.addClassName('trow_selected');
}
}
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--;

		}
else
{

		}
else
{

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

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





		}

		}


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

 

if(inlineModeration.inlineCount < 0)
{


if(inlineModeration.inlineCount < 0)
{

Zeile 142Zeile 172
		}

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

		}

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

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

 

return true;
},


return true;
},

Zeile 171Zeile 200
		$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 218
		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;
},