aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Luong2013-06-25 15:59:44 (EDT)
committerMark Macdonald2013-06-26 10:08:00 (EDT)
commit66199afc3435d6c4c98155d35f2ef5455ecd4644 (patch)
tree079dc9ea7d1d97951fac956b05fb74660c0db37c
parent44932cd0f4e3739a35551e609cb18ce3b0a6a74e (diff)
downloadorg.eclipse.orion.client-66199afc3435d6c4c98155d35f2ef5455ecd4644.zip
org.eclipse.orion.client-66199afc3435d6c4c98155d35f2ef5455ecd4644.tar.gz
org.eclipse.orion.client-66199afc3435d6c4c98155d35f2ef5455ecd4644.tar.bz2
Bug 411532 - Save button remains on toolbar after editor goes away
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/edit/setup.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
index e424c37..6947577 100644
--- a/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
+++ b/bundles/org.eclipse.orion.client.ui/web/edit/setup.js
@@ -267,6 +267,11 @@ exports.setUpEditor = function(serviceRegistry, preferences, isReadOnly){
});
inputManager.addEventListener("InputChanged", function(evt) { //$NON-NLS-0$
if (evt.input === null || typeof evt.input === "undefined") {//$NON-NLS-0$
+ // remove the toolbar
+ var toolbar = lib.node("pageActions"); //$NON-NLS-0$
+ if (toolbar) {
+ commandRegistry.destroy(toolbar);
+ }
return;
}
var metadata = evt.metadata;