Project

General

Profile

Bug #18385 ยป rtehtmlarea_bugfix_7773.patch

Administrator Admin, 2008-03-06 05:32

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (working copy)
if (window.XMLHttpRequest || window.ActiveXObject) {
try {
var success = true;
for (var i = HTMLArea._scripts.length; --i >= 0 && success;) success = success && HTMLArea._getScript(i);
for (var i = 0, n = HTMLArea._scripts.length; i < n && success; i++) {
success = success && HTMLArea._getScript(i);
}
} catch (e) {
HTMLArea._appendToLog("ERROR [HTMLArea::init]: Unable to use XMLHttpRequest: "+ e);
}
......
return false;
}
if (typeof(this.btnList[buttonId]) !== "undefined") {
HTMLArea._appendToLog("[HTMLArea.Config::registerButton]: A button with the same Id: " + buttonId + " already exists.");
return false;
HTMLArea._appendToLog("[HTMLArea.Config::registerButton]: A button with the same Id: " + buttonId + " already exists and will be overidden.");
}
switch (typeof(id)) {
case "string":
......
*/
HTMLArea.Config.prototype.registerDropdown = function(dropDownConfiguration) {
if (typeof(this.customSelects[dropDownConfiguration.id]) != "undefined") {
HTMLArea._appendToLog("ERROR [HTMLArea.Config::registerDropdown]: A dropdown with the same ID " + dropDownConfiguration.id + " already exists.");
return false;
HTMLArea._appendToLog("[HTMLArea.Config::registerDropdown]: A dropdown with the same ID " + dropDownConfiguration.id + " already exists and will be overidden.");
}
if (typeof(this.btnList[dropDownConfiguration.id]) != "undefined") {
HTMLArea._appendToLog("ERROR [HTMLArea.Config::registerDropdown]: A button with the same ID " + dropDownConfiguration.id + " already exists.");
    (1-1/1)