Remove pop-up when submitting Satellite Edit Suggestion
Fixes https://gitlab.com/librespacefoundation/satnogs/satnogs-db/-/issues/503 Signed-off-by: George Sfoungaris <sfou@libre.space>spacecruft
parent
5eff9c7e13
commit
f847b783f6
|
@ -261,4 +261,20 @@ $(document).ready(function () {
|
|||
$('#showInvalidCheckbox').on('click', function() {
|
||||
invalidTransmittersDiv.fadeToggle('fast', 'linear');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Prevent "are you sure you want to leave" popup on submit
|
||||
$(document).ajaxComplete(function(){
|
||||
$('#satellite_update-form').submit(function() {
|
||||
$(window).unbind('beforeunload');
|
||||
});
|
||||
|
||||
$('#transmitter_create-form').submit(function() {
|
||||
$(window).unbind('beforeunload');
|
||||
});
|
||||
|
||||
$('#transmitter_update-form').submit(function() {
|
||||
$(window).unbind('beforeunload');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue