fix dropdown in dialog

pull/117/merge
nightwing 2015-06-05 03:00:23 +04:00
rodzic 4fd895ff4e
commit 74fc98e7b7
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -228,9 +228,9 @@ define(function(require, module, exports) {
} }
var el = plugin.getElement(item.id); var el = plugin.getElement(item.id);
switch(el.type) { switch (el.type || el.tagName) {
case "dropdown": case "dropdown":
var dropdown = el.lastChild; var dropdown = el;
var data = item.items.map(function(item) { var data = item.items.map(function(item) {
return "<item value='" + item.value return "<item value='" + item.value
@ -247,12 +247,12 @@ define(function(require, module, exports) {
if ("onclick" in item) if ("onclick" in item)
el.onclick = item.onclick; el.onclick = item.onclick;
if ("visible" in item) if ("visible" in item)
el.setAttribute("visible", item.visible) el.setAttribute("visible", item.visible);
if ("zindex" in item) if ("zindex" in item)
el.setAttribute("zindex", item.zindex) el.setAttribute("zindex", item.zindex);
break; break;
} }
}) });
} }
// @todo this looks very similar to forms.js. Perhaps able to merge? // @todo this looks very similar to forms.js. Perhaps able to merge?

Wyświetl plik

@ -29363,7 +29363,7 @@ apf.aml.setElement("colorbox", apf.colorbox);
* @private * @private
*/ */
apf.WinServer = { apf.WinServer = {
count: 900000, count: 150000,
wins: [], wins: [],
setTop: function(win, norecur) { setTop: function(win, norecur) {