Ticket #1639 (closed enhancement: fixed)
[patch] [CLA needed] Improve in wizard widget for checkPass function
| Reported by: | miksir@… | Owned by: | dante |
|---|---|---|---|
| Priority: | low | Milestone: | 1.1 |
| Component: | Dojox | Version: | 0.3 |
| Severity: | normal | Keywords: | |
| Cc: | miksir@… |
Description
checkPass of Wizard wait for the error string and display alert. For create own error alert i make some changes (see patch below) Now checkPass can return string (old logics) or false.
diff -ur dojo-0.3.1-core/src/widget/Wizard.js dojo/src/widget/Wizard.js
--- dojo-0.3.1-core/src/widget/Wizard.js 2006-06-13 01:19:37.000000000 +0400
+++ dojo/src/widget/Wizard.js 2006-10-12 13:05:45.000000000 +0400
@@ -192,10 +192,12 @@
checkPass: function() {
if (this.passFunction && dojo.lang.isFunction(this.passFunction)) {
var failMessage = this.passFunction();
- if (failMessage) {
+ if (typeof(failMessage) == 'string') {
alert(failMessage);
return false;
}
+ if (typeof(failMessage) == 'boolean')
+ return failMessage;
}
return true;
},
Change History
Note: See
TracTickets for help on using
tickets.