From ece2374328420344cfadeed7e20390a0dfbb5cc5 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Thu, 6 Oct 2016 20:40:20 +0200 Subject: [PATCH] Corrected display of working plan in settings page. --- src/assets/js/backend_settings_system.js | 2 +- src/assets/js/working_plan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/backend_settings_system.js b/src/assets/js/backend_settings_system.js index f68bf00b..46c8ccbf 100644 --- a/src/assets/js/backend_settings_system.js +++ b/src/assets/js/backend_settings_system.js @@ -47,7 +47,7 @@ // We need to refresh the working plan. var workingPlan = BackendSettings.wp.get(); - $('.breaks').empty(); + $('.breaks tbody').empty(); BackendSettings.wp.setup(workingPlan); BackendSettings.wp.timepickers(false); }, 'json').fail(GeneralFunctions.ajaxFailureHandler); diff --git a/src/assets/js/working_plan.js b/src/assets/js/working_plan.js index 2e33556a..a1ed8f96 100644 --- a/src/assets/js/working_plan.js +++ b/src/assets/js/working_plan.js @@ -75,7 +75,7 @@ '' + '' + ''; - $('.breaks').append(tr); + $('.breaks tbody').append(tr); }.bind(this)); } else { $('#' + index).prop('checked', false);