summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-10-04 06:26:35 (EDT)
committer Manik Kishore2012-10-04 06:26:35 (EDT)
commit91608b9c9fb37d495e341e6418e08490622a7e6a (patch)
tree6802bc361b182cc0f0c23b3e9d58047b795fa66b
parente081a5daee58000e2d55a66f4f3a4bb44cbf2ecd (diff)
downloadorg.eclipse.stardust.ui.web-91608b9c9fb37d495e341e6418e08490622a7e6a.zip
org.eclipse.stardust.ui.web-91608b9c9fb37d495e341e6418e08490622a7e6a.tar.gz
org.eclipse.stardust.ui.web-91608b9c9fb37d495e341e6418e08490622a7e6a.tar.bz2
CRNT-26355
Added server side call for Gateway type change in m_gatewaySymbol.js. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@59758 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_gatewaySymbol.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_gatewaySymbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_gatewaySymbol.js
index c35d9b7..a010dcd 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_gatewaySymbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_gatewaySymbol.js
@@ -515,16 +515,27 @@ define(
this.modelElement.gatewayType = m_constants.AND_GATEWAY_TYPE;
this.xorPath.hide();
this.andPath.show();
- m_commandsController.submitImmediately(m_command
- .createUpdateCommand(this));
+ this.submitChanges();
};
GatewaySymbol.prototype.switchToXorGateway = function() {
this.modelElement.gatewayType = m_constants.XOR_GATEWAY_TYPE;
this.andPath.hide();
this.xorPath.show();
- m_commandsController.submitImmediately(m_command
- .createUpdateCommand(this));
+ this.submitChanges();
+ };
+
+ /**
+ * Update the modelElement
+ */
+ GatewaySymbol.prototype.submitChanges = function() {
+ var changes = {
+ gatewayType : this.modelElement.gatewayType
+ };
+ m_commandsController.submitCommand(m_command
+ .createUpdateModelElementCommand(
+ this.diagram.modelId,
+ this.modelElement.oid, changes));
};
}