<input id="aw36-cell-1-3-box-edit" class="aw-item-text" autocomplete="off" value="Around the Horns" style="width: 100%;" type="text">
AW._endEdit = function() {
if (AW._endEditFlag) {
return false
}
AW._endEditFlag = true;
try {
if (originalText != obj.getControlProperty("text") && !AW._commitEdit()) {
return false
}
if (raiseEvent("editEnding")) {
return false
}
if (AW.$popup) {
AW.$popup.hidePopup()
}
var e = obj.element().getElementsByTagName("INPUT")[0];
if (AW.ie) {
if (!AW.ms) {
e.removeExpression("aw-value")
}
e.detachEvent("onselectstart", nobubble);
e.detachEvent("oncontextmenu", nobubble);
e.detachEvent("onpropertychange", oninput);
e.detachEvent("onkeydown", onkeydown);
e.detachEvent("onbeforedeactivate", onbeforedeactivate)
} else {
e.removeEventListener("contextmenu", nobubble, false);
e.removeEventListener("selectstart", nobubble, false);
e.removeEventListener("input", oninput, false);
e.removeEventListener("keydown", onkeydown, false);
obj.element().removeEventListener("mousedown", onmousedown, true)
}
e.parentNode.scrollLeft = 0;
var text = obj.getControlProperty("text");
if (originalNode) {
originalNode.innerHTML = text;
if (AW.ie) {
e.parentNode.insertBefore(originalNode, e);
removeElement(e)
} else {
e.parentNode.replaceChild(originalNode, e)
}
originalNode = null
} else if (!obj.getContent("box/text").element()) {
if (AW.ie) {
e.parentNode.removeChild(e.previousSibling);
e.insertAdjacentHTML("beforeBegin", text);
removeElement(e)
} else {
e.parentNode.innerHTML = text
}
}
e = null;
obj.element().className = obj.element().className.replace(/ aw-edit-\w+/ig, "");
if (obj.$owner) {
obj.$owner.$edit = false
}
AW._edit = "";
raiseEvent("editEnded");
return true;
} finally {
AW._endEditFlag = false // * code ended up here -- EXCEPTION NOT PROCESSED * //
}
}
This topic is archived.