Name of backup
diff --git a/Duplicati/Server/webroot/scripts/app.js b/Duplicati/Server/webroot/scripts/app.js
index eb3ef881a..cfefb0649 100644
--- a/Duplicati/Server/webroot/scripts/app.js
+++ b/Duplicati/Server/webroot/scripts/app.js
@@ -345,7 +345,7 @@ $(document).ready(function() {
}},
{ text: 'Next', click: function(event, ui) {
var cur = parseInt($('#edit-dialog').tabs( "option", "active"));
- var max = $('#edit-dialog').tabs("length");
+ var max = $('#edit-dialog').parent().find('[role=tablist] > li').size() - 1;
event.curPage = cur;
event.currentTarget.curPage = cur;
cur = Math.min(cur+1, max);
diff --git a/Duplicati/Server/webroot/scripts/editdialog.js b/Duplicati/Server/webroot/scripts/editdialog.js
index f643e34fd..76cc2729d 100644
--- a/Duplicati/Server/webroot/scripts/editdialog.js
+++ b/Duplicati/Server/webroot/scripts/editdialog.js
@@ -277,7 +277,8 @@ $(document).ready(function() {
});
$(dlg_buttons[1]).click(function(event, ui) {
- if (event.curPage == 4) {
+ var tabs = $('#edit-dialog').parent().find('[role=tablist] > li');
+ if (event.curPage == tabs.size() - 1) {
// Saving, validate first
if ($('#backup-name').val().trim() == '') {