Vergleich jscripts/editor.js - 1.6.7 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 526Zeile 526
	createDropDownMenu: function(options)
{
var dropdown = document.createElement('div');

	createDropDownMenu: function(options)
{
var dropdown = document.createElement('div');

		dropdown.itemType = options.type;

		dropdown.elementType = options.type;

		if(options.image || options.sprite)
dropdown.className = 'toolbar_dropdown_image';
else

		if(options.image || options.sprite)
dropdown.className = 'toolbar_dropdown_image';
else

Zeile 631Zeile 631
		element = Event.element(e);
if(!element)
return;

		element = Event.element(e);
if(!element)
return;

		if(!element.itemType)

		if(!element.elementType)

			element = this.getElementToolbarItem(element);

var mnu = $(element).down('ul');

			element = this.getElementToolbarItem(element);

var mnu = $(element).down('ul');

Zeile 772Zeile 772
				toolbar.lastChild.previousSibling.className += ' toolbar_button_group_last';
}
var separator = document.createElement("span");

				toolbar.lastChild.previousSibling.className += ' toolbar_button_group_last';
}
var separator = document.createElement("span");

			separator.itemType = options.type;

			separator.elementType = options.type;

			separator.className = "toolbar_sep";
toolbar.insertBefore(separator, toolbar.lastChild);
}

			separator.className = "toolbar_sep";
toolbar.insertBefore(separator, toolbar.lastChild);
}

Zeile 781Zeile 781
	createToolbarButton: function(options)
{
var button = document.createElement('span');

	createToolbarButton: function(options)
{
var button = document.createElement('span');

		button.itemType = options.type;

		button.elementType = options.type;

		button.id = 'editor_item_'+options.name;
if(typeof(options.title) != 'undefined')
{

		button.id = 'editor_item_'+options.name;
if(typeof(options.title) != 'undefined')
{

Zeile 921Zeile 921
		if(!element)
return false;


		if(!element)
return false;


		if(!element.itemType)

		if(!element.elementType)

			element = 	this.getElementToolbarItem(element);

if(element.disabled)

			element = 	this.getElementToolbarItem(element);

if(element.disabled)

Zeile 953Zeile 953
		if(!element)
return false;


		if(!element)
return false;


		if(!element.itemType)

		if(!element.elementType)

			element = this.getElementToolbarItem(element);

if(element.disabled)

			element = this.getElementToolbarItem(element);

if(element.disabled)

Zeile 970Zeile 970
		if(!element)
return false;


		if(!element)
return false;


		if(!element.itemType)

		if(!element.elementType)

			element = this.getElementToolbarItem(element);

if(element.disabled)

			element = this.getElementToolbarItem(element);

if(element.disabled)

Zeile 1172Zeile 1172
							this.removeElementState(elem, 'clicked');
}


							this.removeElementState(elem, 'clicked');
}


						if(elem && (elem.itemType == "dropdown" || elem.dropdown || elem.menu))

						if(elem && (elem.elementType == "dropdown" || elem.dropdown || elem.menu))

						{
this.setDropDownMenuActiveItem(elem, 0);
}

						{
this.setDropDownMenuActiveItem(elem, 0);
}

Zeile 1383Zeile 1383
				}
if(tag)
{

				}
if(tag)
{

					if(tag.itemType == "dropdown" || tag.dropdown || tag.menu)

					if(tag.elementType == "dropdown" || tag.dropdown || tag.menu)

					{
this.setDropDownMenuActiveItem(tag, 0);
}

					{
this.setDropDownMenuActiveItem(tag, 0);
}