From 2dfa42e57a146a4ec9f325db5ed3643a50b8a563 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 4 Mar 2014 15:36:39 +0100 Subject: [PATCH] Added validation to the source folder dialog --- Duplicati/Server/webroot/scripts/editdialog.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Duplicati/Server/webroot/scripts/editdialog.js b/Duplicati/Server/webroot/scripts/editdialog.js index 72cf8efa2..2e79c5aa0 100644 --- a/Duplicati/Server/webroot/scripts/editdialog.js +++ b/Duplicati/Server/webroot/scripts/editdialog.js @@ -86,6 +86,13 @@ $(document).ready(function() { 'edit-tab-sourcedata': function(tabindex) { + if ($('#source-folder-paths').find('.source-folder').length == 0) { + $('#edit-dialog').tabs( "option", "active", tabindex); + $('#source-folder-paths').focus(); + alert('You must select at least one source folder to back up'); + return false; + } + return true; },