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

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

@ -287,6 +287,14 @@
{% block tail %}
<script>
$(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
$('#save_button_checkmark').hide();
@ -342,6 +350,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -361,5 +370,10 @@
}
$( "#settings-auth-apikey" ).val( result );
}
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
</script>
{% endblock tail %}

@ -159,6 +159,14 @@
$(document).ready(function () {
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
$('#save_button_checkmark').hide();
@ -262,6 +270,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -297,6 +306,11 @@
}
});
}
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
});
</script>
{% endblock tail %}

@ -649,6 +649,14 @@
{% block tail %}
<script>
$(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
$('#save_button_checkmark').hide();
@ -696,6 +704,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -704,6 +713,11 @@
}
});
});
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
});
</script>
{% endblock tail %}

@ -243,6 +243,14 @@
{% block tail %}
<script>
$(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
$('#save_button_checkmark').hide();
@ -278,6 +286,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -375,6 +384,11 @@
}
});
});
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
});
</script>
{% endblock tail %}

@ -243,6 +243,14 @@
{% block tail %}
<script>
$(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
$('#save_button_checkmark').hide();
@ -278,6 +286,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -375,6 +384,11 @@
}
});
});
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
});
</script>
{% endblock tail %}

@ -297,6 +297,14 @@
{% block tail %}
<script>
$(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
$('#save_button_checkmark').hide();
@ -386,6 +394,7 @@
type: 'POST',
complete: function () {
$('#save_button_checkmark').show();
form_changed = false;
setTimeout(
function()
{
@ -394,6 +403,11 @@
}
});
});
// monitor changes to the settings_form
$('#settings_form').on('change', function() {
form_changed = true;
})
});
</script>
{% endblock tail %}

Loading…
Cancel
Save