Univention Bugzilla – Bug 32097
umc/widgets/Text.isValid() missing
Last modified: 2014-11-11 15:01:43 CET
Uncaught TypeError: Object [object Object] has no method 'isValid' uvmm/DriveWizard.js:319 valid = valid && (!iwidget.get('visible') || false !== iwidget.isValid()); It would be nice if a dummy "function isValid() { return true; }" would be defined for umc/widget/Text, since Text is sometimes used in a Form to display additional Text, for example in UVMM when the storage pool capacity is exceeded. univention-management-console-frontend/umc/widgets/Text.js
svn32097: for now UVMM ignores a missing isValid().
It is also possible to use umc/widgets/Form:validate(), this method takes care of exactly that problem. Would that be of use?
... as I am working on validation issues anyway, I added the function.
This bug has been fixed along with Bug 34484. *** This bug has been marked as a duplicate of bug 34484 ***
What about the following widgets? umc.widgets.Button umc.widgets.SubmitButton umc.widgets.TitlePane umc.widgets.ExpandingTitlePane ( umc.widgets.ContainerWidget umc.widgets.LabelPane )
(In reply to Florian Best from comment #5) > What about the following widgets? > umc.widgets.Button > umc.widgets.SubmitButton > umc.widgets.TitlePane > umc.widgets.ExpandingTitlePane > ( > umc.widgets.ContainerWidget > umc.widgets.LabelPane > ) This was not part of this bug.
OK, Text.isValid() works. The other widgets not yet :(.
UCS 3.2-2 has been released: http://docs.univention.de/release-notes-3.2-2-en.html http://docs.univention.de/release-notes-3.2-2-de.html If this error occurs again, please use "Clone This Bug".