| author | Sidharth Singh | 2012-08-20 06:33:20 (EDT) |
|---|---|---|
| committer | Manik Kishore | 2012-08-20 06:33:20 (EDT) |
| commit | 6dfeb59b028af966696492d6d8b078ced86a98cd (patch) (side-by-side diff) | |
| tree | 08a615f3f5459e635c2250f6bfdd741d6d1fd2c8 | |
| parent | c034b3d456d648ec3eaa9e61e7f48692406c2e4b (diff) | |
| download | org.eclipse.stardust.ui.web-6dfeb59b028af966696492d6d8b078ced86a98cd.zip org.eclipse.stardust.ui.web-6dfeb59b028af966696492d6d8b078ced86a98cd.tar.gz org.eclipse.stardust.ui.web-6dfeb59b028af966696492d6d8b078ced86a98cd.tar.bz2 | |
Jira-ID: CRNT-25577
Removed the connection from this.diagram array on connection remove.
Set this.lastSymbol =null after update of Symbol from added array in m_diagram.js
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58533 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js | 3 | ||||
| -rw-r--r-- | web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js index a08a365..2c05fc6 100644 --- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js +++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js @@ -1186,6 +1186,9 @@ define( this.path.remove();
this.removeFlyOutMenu();
this.removeProximitySensor();
+
+ m_utils.removeItemFromArray(
+ this.diagram.connections, this);
// Remove this connection from FROM and TO Symbol's
// connection array
m_utils.removeItemFromArray(
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js index b42e303..672e3d6 100644 --- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js +++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js @@ -550,7 +550,7 @@ define( .match(this.lastSymbol.type)) {
this.lastSymbol
.applyChanges(obj.changes.added[i]);
-
+ this.lastSymbol = null;
}// For connections lastSymbol will be empty
else if (null != obj.changes.added[i].modelElement) {
// for connections , search by connectionId to
|

