mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Merge remote-tracking branch 'origin/hermes' into hermes
This commit is contained in:
commit
f279975c4d
7 changed files with 84 additions and 0 deletions
BIN
static/404.png
Normal file
BIN
static/404.png
Normal file
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…
Reference in a new issue