Hide tab/pane immediately when closing last tab of pane and setting to keep pane is off

pull/223/head
Ruben Daniels 2015-11-14 00:45:45 +00:00
rodzic fb0a4644e7
commit 3ed3bb9a05
3 zmienionych plików z 20 dodań i 13 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

@ -103,23 +103,30 @@ 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(){
if (tab.meta.$closeSync) {
tab.unload(e);
closing--;
}
else {
setTimeout(function(){
tab.unload(e);
closing--;
});
}
closeNow();
});
}
function closeNow(){
if (tab.meta.$closeSync) {
tab.unload(event);
closing--;
}
else {
setTimeout(function(){
tab.unload(event);
closing--;
});
}
}
},
overactivetab: true,
childNodes: [

Wyświetl plik

@ -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");