Prevent a chain of click events

Click events in some weird cases cause this function to be called twice, ensure that we stop processing this event after first pass
This commit is contained in:
Łukasz Mierzwa
2017-04-25 19:14:18 -07:00
parent 0c37254a71
commit 9152aeff04
2 changed files with 4 additions and 1 deletions

View File

@@ -205,6 +205,9 @@ var UI = (function(params) {
}
$("#endsAt").data('DateTimePicker').date(endsAt);
silenceFormCalculateDuration();
// prevent recursive events
event.stopPropagation();
};

File diff suppressed because one or more lines are too long