kopia lustrzana https://github.com/c9/core
Hide tab/pane immediately when closing last tab of pane and setting to keep pane is off
rodzic
fb0a4644e7
commit
3ed3bb9a05
|
@ -80,7 +80,7 @@
|
|||
"c9.ide.ace.split": "#0ae0151c78",
|
||||
"c9.ide.ace.statusbar": "#2155083cf6",
|
||||
"c9.ide.ace.stripws": "#cf0f42ac59",
|
||||
"c9.ide.behaviors": "#6530a20004",
|
||||
"c9.ide.behaviors": "#13d2c56564",
|
||||
"c9.ide.closeconfirmation": "#cee4674141",
|
||||
"c9.ide.configuration": "#a9066299a2",
|
||||
"c9.ide.dialog.wizard": "#7667ec79a8",
|
||||
|
|
|
@ -103,22 +103,29 @@ define(function(require, module, exports) {
|
|||
emit("afterClose", event);
|
||||
|
||||
if (tab.aml.$amlDestroyed) {
|
||||
tab.unload(e);
|
||||
tab.unload(event);
|
||||
closing--;
|
||||
}
|
||||
else if (tab.meta.$skipAnimation) {
|
||||
closeNow();
|
||||
}
|
||||
else {
|
||||
tab.aml.on("afterclose", function(){
|
||||
closeNow();
|
||||
});
|
||||
}
|
||||
|
||||
function closeNow(){
|
||||
if (tab.meta.$closeSync) {
|
||||
tab.unload(e);
|
||||
tab.unload(event);
|
||||
closing--;
|
||||
}
|
||||
else {
|
||||
setTimeout(function(){
|
||||
tab.unload(e);
|
||||
tab.unload(event);
|
||||
closing--;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
overactivetab: true,
|
||||
|
|
|
@ -304,7 +304,7 @@ define(function(require, module, exports) {
|
|||
if (rule)
|
||||
ui.removeStyleRule(rule, stylesheet);
|
||||
// If there are no more pages left, reset location
|
||||
var last = amlPane.getPages().length === 0;
|
||||
var last = e.last || amlPane.getPages().length === 0;
|
||||
if (last)
|
||||
apf.setStyleClass(amlPane.$ext, "empty");
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue