pull/997/head
Louis Vézina 5 years ago
parent 7b55b115ab
commit 236b5c792d

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

@ -287,6 +287,14 @@
{% block tail %} {% block tail %}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -342,6 +350,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -361,5 +370,10 @@
} }
$( "#settings-auth-apikey" ).val( result ); $( "#settings-auth-apikey" ).val( result );
} }
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
</script> </script>
{% endblock tail %} {% endblock tail %}

@ -159,6 +159,14 @@
$(document).ready(function () { $(document).ready(function () {
getLanguages(); getLanguages();
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -262,6 +270,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -297,6 +306,11 @@
} }
}); });
} }
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
}); });
</script> </script>
{% endblock tail %} {% endblock tail %}

@ -649,6 +649,14 @@
{% block tail %} {% block tail %}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -696,6 +704,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -704,6 +713,11 @@
} }
}); });
}); });
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
}); });
</script> </script>
{% endblock tail %} {% endblock tail %}

@ -243,6 +243,14 @@
{% block tail %} {% block tail %}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -278,6 +286,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -375,6 +384,11 @@
} }
}); });
}); });
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
}); });
</script> </script>
{% endblock tail %} {% endblock tail %}

@ -243,6 +243,14 @@
{% block tail %} {% block tail %}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -278,6 +286,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -375,6 +384,11 @@
} }
}); });
}); });
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
}); });
</script> </script>
{% endblock tail %} {% endblock tail %}

@ -297,6 +297,14 @@
{% block tail %} {% block tail %}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// Show warning if there's unsaved changes in the settings_form
var form_changed = false;
$(window).on('beforeunload', function() {
if (form_changed) {
return "";
}
});
// Hide checkmark over save button // Hide checkmark over save button
$('#save_button_checkmark').hide(); $('#save_button_checkmark').hide();
@ -386,6 +394,7 @@
type: 'POST', type: 'POST',
complete: function () { complete: function () {
$('#save_button_checkmark').show(); $('#save_button_checkmark').show();
form_changed = false;
setTimeout( setTimeout(
function() function()
{ {
@ -394,6 +403,11 @@
} }
}); });
}); });
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
}); });
</script> </script>
{% endblock tail %} {% endblock tail %}

Loading…
Cancel
Save