Small fixes before releasing v0.9 to master.

pull/1038/head v0.9
Louis Vézina 4 years ago
parent f7c1ebdd8c
commit 4ba8822817

@ -324,7 +324,7 @@
$('#save_button').prop('disabled', true).css('cursor', 'not-allowed'); $('#save_button').prop('disabled', true).css('cursor', 'not-allowed');
// Hide update_div if args.no-update // Hide update_div if args.no-update
{% if args.no_update %} {% if args.no_update or args.release_update %}
$('#update_div').hide() $('#update_div').hide()
{% endif %} {% endif %}

@ -371,7 +371,11 @@
buttons: [{ buttons: [{
text: 'Add', text: 'Add',
action: function () { action: function () {
$('#addModal').modal('show'); if (form_changed) {
alert('You must save changes before adding a path mapping.')
} else {
$('#addModal').modal('show');
}
} }
}, },
{ {

@ -394,7 +394,11 @@
buttons: [{ buttons: [{
text: 'Add', text: 'Add',
action: function () { action: function () {
$('#addModal').modal('show'); if (form_changed) {
alert('You must save changes before adding a path mapping.')
} else {
$('#addModal').modal('show');
}
} }
}, },
{ {

Loading…
Cancel
Save