Univention Bugzilla – Attachment 4268 Details for
Bug 26525
umc.widgets.Form: Prüfung der Eingaben
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
umc.widgets.Form.validate
validate-form.patch (text/plain), 754 bytes, created by
Andreas Büsching
on 2012-03-15 11:52 CET
(
hide
)
Description:
umc.widgets.Form.validate
Filename:
MIME Type:
Creator:
Andreas Büsching
Created:
2012-03-15 11:52 CET
Size:
754 bytes
patch
obsolete
>Index: umc/widgets/Form.js >=================================================================== >--- umc/widgets/Form.js (Revision 31472) >+++ umc/widgets/Form.js (Arbeitskopie) >@@ -437,6 +437,27 @@ > return deferred; > }, > >+ validate: function() { >+ return this.getInvalidWidgets().length === 0; >+ }, >+ >+ getInvalidWidgets: function() { >+ var widgets = []; >+ >+ umc.tools.forIn(this._widgets, function(iname, iwidget) { >+ if ( iwidget.validate !== undefined ) { >+ if ( iwidget._maskValidSubsetError !== undefined ) { >+ iwidget._maskValidSubsetError = false; >+ } >+ if ( ! iwidget.validate() ) { >+ widgets.push( iname ); >+ } >+ } >+ } ); >+ >+ return widgets; >+ }, >+ > onSaved: function(/*Boolean*/ success) { > // event stub > },
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 26525
: 4268