mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Importer: Reload page after successful import
This commit is contained in:
parent
b312e505dc
commit
655d29ceb9
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user