Evening,
I switched my project from the 2.0 libraries to the 2.1 libraries - so that I could get the 64 bit support... mandated by the IOS Store in about 11 days.
Code previously working .... breaks in a .js script called 'component-manager.js'....
here's the code... :
Code: Select all
function SelectMenuFacade() {
}
SelectMenuFacade.prototype = Object.create(Facade.prototype, {
_properties: { writable: false, configurable: false, value: ["visible", "selectedMenuItem"] }
});
SelectMenuFacade.prototype.__change_ids = function (c, id_mod) {
var select = SelectMenuFacade.prototype.unwrapper(c).clone();
select.attr("dsrefid", select.attr("dsid")).attr("dsid", select.attr("dsid") + "_" + id_mod);
select.attr("id", select.attr("id") + "_" + id_mod).attr("_idx", "_" + id_mod);
c.children().children("select").children().each(function () {
var selectitemFacade = findFacade($(this));
$(this).replaceWith(selectitemFacade.clone($(this), id_mod));
});
Facade.prototype.set_children(select, c.children().children("select").children());
Facade.prototype.set_children(c, select);
select.selectmenu();
return Facade.prototype.__change_ids.call(this, c, id_mod);
};
SelectMenuFacade.prototype.set_selectedMenuItem = function (c, val) {
var optionToSelect = c.find("option[value='" + val + "']:eq(0)");
if (optionToSelect.length 0) {
c.find("[selected='selected']").removeAttr("selected");
c.val(val);
optionToSelect.attr("selected", "selected");
} else {
// During mapping selected value can be set before the options so setting must be deferred
c.attr("data-deferred-value", val);
}
};
SelectMenuFacade.prototype.get_selectedMenuItem = function (c) {
return c.val().trim(); //ll post the screen dump in the post below this: