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:
parent
1c877bf33c
commit
16526cf9dd
1 changed files with 4 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ import org.zkoss.ganttz.data.GanttDate;
|
||||||
import org.zkoss.ganttz.data.constraint.Constraint;
|
import org.zkoss.ganttz.data.constraint.Constraint;
|
||||||
import org.zkoss.ganttz.extensions.IContext;
|
import org.zkoss.ganttz.extensions.IContext;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.util.Clients;
|
||||||
import org.zkoss.zul.Label;
|
import org.zkoss.zul.Label;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
|
|
||||||
|
|
@ -274,6 +275,9 @@ public class SaveCommandBuilder {
|
||||||
@Override
|
@Override
|
||||||
public void doActions() {
|
public void doActions() {
|
||||||
notifyUserThatSavingIsDone();
|
notifyUserThatSavingIsDone();
|
||||||
|
if (Executions.getCurrent() != null) {
|
||||||
|
Clients.confirmClose(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue