Importer: Reload page after successful import

This commit is contained in:
Florian Vessaz 2016-04-12 18:34:09 +02:00
parent b312e505dc
commit 655d29ceb9

View File

@ -586,9 +586,11 @@
var duration = parseInt(self.info.get('duration'));
//If last contribution finishes before 24:00
if (time + duration * self.entries.getLength() <= 1440) {
var hasError = false;
var killProgress = IndicoUI.Dialogs.Util.progress();
var errorCallback = function(error) {
if (error) {
hasError = true;
IndicoUtil.errorReport(error);
}
};
@ -651,6 +653,9 @@
}
self.close();
killProgress();
if (!hasError) {
location.reload();
}
}
else {
new WarningPopup("Warning", "Some contributions will end after 24:00. Please modify start time and duration.").open();