Corrected display of working plan in settings page.

This commit is contained in:
alextselegidis 2016-10-06 20:40:20 +02:00
parent 0d25d7322e
commit ece2374328
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
// We need to refresh the working plan. // We need to refresh the working plan.
var workingPlan = BackendSettings.wp.get(); var workingPlan = BackendSettings.wp.get();
$('.breaks').empty(); $('.breaks tbody').empty();
BackendSettings.wp.setup(workingPlan); BackendSettings.wp.setup(workingPlan);
BackendSettings.wp.timepickers(false); BackendSettings.wp.timepickers(false);
}, 'json').fail(GeneralFunctions.ajaxFailureHandler); }, 'json').fail(GeneralFunctions.ajaxFailureHandler);

View File

@ -75,7 +75,7 @@
'</button>' + '</button>' +
'</td>' + '</td>' +
'</tr>'; '</tr>';
$('.breaks').append(tr); $('.breaks tbody').append(tr);
}.bind(this)); }.bind(this));
} else { } else {
$('#' + index).prop('checked', false); $('#' + index).prop('checked', false);