summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabri Bousselmi2013-03-06 02:31:17 (EST)
committer Sven Rottstock2013-03-11 06:39:17 (EDT)
commita359f8219352626fd9da44459ccd3764665e6adf (patch)
tree788369a4dc5b50cf7a5eb7875dcd7a3d73f88d90
parent33f5eb5395dab081f21b6ba81a13aaf86790f9b3 (diff)
downloadorg.eclipse.stardust.ui.web-a359f8219352626fd9da44459ccd3764665e6adf.zip
org.eclipse.stardust.ui.web-a359f8219352626fd9da44459ccd3764665e6adf.tar.gz
org.eclipse.stardust.ui.web-a359f8219352626fd9da44459ccd3764665e6adf.tar.bz2
Jira-ID: CRNT-28237
fix issue by updating validate method in m_emailEventIntegrationOverlay.js git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@63512 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_emailEventIntegrationOverlay.js15
1 files changed, 14 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 8a69325..ab25bdc 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
@@ -378,6 +378,7 @@ define(
this.portInput.removeClass("error");
this.connectionTimeoutInput.removeClass("error");
this.initialDelayInput.removeClass("error");
+ this.passwordInput.removeClass("error");
if (this.mailServerInput.val() == null
@@ -400,7 +401,19 @@ define(
this.page.propertiesPanel.showErrorMessages();
return false;
- }
+ }
+
+
+ if (this.passwordInput.val() == null
+ || this.passwordInput.val() == "") {
+ this.page.propertiesPanel.errorMessages
+ .push("Password must not be empty.");
+ this.portInput.addClass("error");
+
+ this.page.propertiesPanel.showErrorMessages();
+
+ return false;
+ }
if (this.portInput.val() == null
|| this.portInput.val() == "" || isNaN(this.portInput.val())) {