summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabri Bousselmi2013-03-05 06:49:55 (EST)
committerSven Rottstock2013-03-11 06:38:57 (EDT)
commit6717e54e63270d84fa0d5a3012a3cd1946476209 (patch)
tree46503e1b029ba43fbdf92d3a05e13ba76994ea21
parent1c70e1e4998150fb212dfe6fbcaba73ee92a90a7 (diff)
downloadorg.eclipse.stardust.ui.web-6717e54e63270d84fa0d5a3012a3cd1946476209.zip
org.eclipse.stardust.ui.web-6717e54e63270d84fa0d5a3012a3cd1946476209.tar.gz
org.eclipse.stardust.ui.web-6717e54e63270d84fa0d5a3012a3cd1946476209.tar.bz2
Jira-ID: CRNT-28163
fix issue (update validate method) git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@63490 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js38
1 files changed, 37 insertions, 1 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js
index 08d94bd..8a69325 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js
@@ -375,6 +375,9 @@ define(
EmailEventIntegrationOverlay.prototype.validate = function() {
this.mailServerInput.removeClass("error");
this.accountInput.removeClass("error");
+ this.portInput.removeClass("error");
+ this.connectionTimeoutInput.removeClass("error");
+ this.initialDelayInput.removeClass("error");
if (this.mailServerInput.val() == null
@@ -397,7 +400,40 @@ define(
this.page.propertiesPanel.showErrorMessages();
return false;
- }
+ }
+
+ if (this.portInput.val() == null
+ || this.portInput.val() == "" || isNaN(this.portInput.val())) {
+ this.page.propertiesPanel.errorMessages
+ .push("Port must be a Number.");
+ this.portInput.addClass("error");
+
+ this.page.propertiesPanel.showErrorMessages();
+
+ return false;
+ }
+
+ if (this.connectionTimeoutInput.val() == null
+ || this.connectionTimeoutInput.val() == "" || isNaN(this.connectionTimeoutInput.val())) {
+ this.page.propertiesPanel.errorMessages
+ .push("ConnectionTimeout must be a Number.");
+ this.portInput.addClass("error");
+
+ this.page.propertiesPanel.showErrorMessages();
+
+ return false;
+ }
+
+ if (this.initialDelayInput.val() == null
+ || this.initialDelayInput.val() == "" || isNaN(this.initialDelayInput.val())) {
+ this.page.propertiesPanel.errorMessages
+ .push("InitialDelay must be a Number.");
+ this.portInput.addClass("error");
+
+ this.page.propertiesPanel.showErrorMessages();
+
+ return false;
+ }
return true;
};