Hi,
In 8.2p, we had the following code which worked fine. When we updated to 8.3p, it broke. The date picker
does show up, but whenever the user selects a date using his mouse, the click mask stays up and the
user can't click anywhere following the date picker popup closing.
Any ideas why this isn't working anymore? Is there a better way to inject logic into SmartClient code,
(aka spoofing methods) such as being done here without going thru the regular inheritance mechanism since
we sometimes don't have control over the name of the objects that get created (factory?) ...
Thanks,
In 8.2p, we had the following code which worked fine. When we updated to 8.3p, it broke. The date picker
does show up, but whenever the user selects a date using his mouse, the click mask stays up and the
user can't click anywhere following the date picker popup closing.
Code:
/** * Class containing a spoofed version for the isc.DateItem class. */ // grab copy of the original showPicker() method so we can call it isc.DateItem.addMethods({ showPickerOriginal : isc.DateItem.getPrototype().showPicker }); isc.DateItem.addProperties ({ //---------------------------------------------------------------------------------------------------------------------------- showPicker : function () { if (this.isReadOnly()) return false; if (this.showPickerOriginal) return this.showPickerOriginal(arguments); return true; } });
(aka spoofing methods) such as being done here without going thru the regular inheritance mechanism since
we sometimes don't have control over the name of the objects that get created (factory?) ...
Thanks,
Comment