pull/142/head
nightwing 2015-09-01 16:52:35 +04:00
rodzic db7bb6e12c
commit 5d13b80c2e
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -960,8 +960,10 @@ apf.menu = function(struct, tagName){
if (!amlNode.$amlLoaded)
amlNode.dispatchEvent("DOMNodeInsertedIntoDocument");
// sometimes DOMNodeInsertedIntoDocument event handler puts $ext at the end of the popup
if (amlNode.previousSibling && amlNode.previousSibling.$ext && amlNode.$ext)
if (amlNode.$ext.previousSibling != amlNode.previousSibling.$ext)
if (!amlNode.previousSibling || !amlNode.previousSibling.$ext || amlNode.$ext)
continue;
if (amlNode.$ext.previousSibling == amlNode.previousSibling.$ext)
continue;
if (amlNode.$ext.parentNode == amlNode.previousSibling.$ext.parentNode)
amlNode.$ext.parentNode.insertBefore(amlNode.$ext, amlNode.previousSibling.$ext.nextSibling);
}