summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFradj Zayen2013-02-22 04:50:53 (EST)
committerSven Rottstock2013-03-11 06:37:38 (EDT)
commitee769dc4f377ba254d8e8acf55bf28519629c319 (patch)
tree0e91c449824107ab090d95e0b12f9efa82715f56
parent182d2c84b2c7f1ab5adcd3e954d909ebe84e5de9 (diff)
downloadorg.eclipse.stardust.ui.web-ee769dc4f377ba254d8e8acf55bf28519629c319.zip
org.eclipse.stardust.ui.web-ee769dc4f377ba254d8e8acf55bf28519629c319.tar.gz
org.eclipse.stardust.ui.web-ee769dc4f377ba254d8e8acf55bf28519629c319.tar.bz2
Jira-ID: CRNT-28053
In LM pepper M11 build, for JMS and Generic Camel Route, issue rendering Parameter mapping overlay git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@63183 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_dataTypeSelector.js40
1 files changed, 21 insertions, 19 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_dataTypeSelector.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_dataTypeSelector.js
index 489582e..c5bd600 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_dataTypeSelector.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_dataTypeSelector.js
@@ -34,6 +34,16 @@ define(
*
*/
function DataTypeSelector() {
+
+ DataTypeSelector.prototype.startsWith = function(str, prefix) {
+ return str.indexOf(prefix) === 0;
+ }
+ DataTypeSelector.prototype.checkElementId = function(id, prefix) {
+ if(this.startsWith(id,"#"))
+ return id;
+ return "#"+id;
+ }
+
/**
* Options are
*
@@ -46,25 +56,17 @@ define(
this.supportsDocumentTypes = options.supportsDocumentTypes;
this.restrictToCurrentModel = options.restrictToCurrentModel;
this.hideEnumerations = options.hideEnumerations;
-
- this.dataTypeSelect = jQuery("#" + this.scope
- + " #dataTypeSelect");
- this.primitiveDataTypeRow = jQuery("#" + this.scope
- + " #primitiveDataTypeRow");
- this.primitiveDataTypeSelect = jQuery("#" + this.scope
- + " #primitiveDataTypeSelect");
- this.structuredDataTypeRow = jQuery("#" + this.scope
- + " #structuredDataTypeRow");
- this.structuredDataTypeSelect = jQuery("#" + this.scope
- + " #structuredDataTypeSelect");
- this.documentTypeSelect = jQuery("#" + this.scope
- + " #documentTypeSelect");
- this.documentTypeRow = jQuery("#" + this.scope
- + " #documentTypeRow");
- this.otherTypeRow = jQuery("#" + this.scope
- + " #otherTypeRow");
- this.otherTypeName = jQuery("#" + this.scope
- + " #otherTypeName");
+
+
+ this.dataTypeSelect = jQuery(this.checkElementId(this.scope) + " #dataTypeSelect");
+ this.primitiveDataTypeRow = jQuery(this.checkElementId(this.scope) + " #primitiveDataTypeRow");
+ this.primitiveDataTypeSelect = jQuery(this.checkElementId(this.scope)+ " #primitiveDataTypeSelect");
+ this.structuredDataTypeRow = jQuery(this.checkElementId(this.scope) + " #structuredDataTypeRow");
+ this.structuredDataTypeSelect = jQuery(this.checkElementId(this.scope)+ " #structuredDataTypeSelect");
+ this.documentTypeSelect = jQuery(this.checkElementId(this.scope)+ " #documentTypeSelect");
+ this.documentTypeRow = jQuery(this.checkElementId(this.scope)+ " #documentTypeRow");
+ this.otherTypeRow = jQuery(this.checkElementId(this.scope)+ " #otherTypeRow");
+ this.otherTypeName = jQuery(this.checkElementId(this.scope) + " #otherTypeName");
this.initializeDataTypeOptions();