Removed confirmClose warning when leaving project planning after Save Command

It's needed to move the confirmClose method code to saveCommand to enable timer to start again.

FEA: ItEr77S03Community
This commit is contained in:
Lorenzo Tilve Álvaro 2012-11-26 09:44:07 +01:00 committed by Manuel Rego Casasnovas
parent 1c877bf33c
commit 16526cf9dd

View file

@ -105,6 +105,7 @@ import org.zkoss.ganttz.data.GanttDate;
import org.zkoss.ganttz.data.constraint.Constraint;
import org.zkoss.ganttz.extensions.IContext;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Label;
import org.zkoss.zul.Messagebox;
@ -274,6 +275,9 @@ public class SaveCommandBuilder {
@Override
public void doActions() {
notifyUserThatSavingIsDone();
if (Executions.getCurrent() != null) {
Clients.confirmClose(null);
}
}
});
}