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.
var workingPlan = BackendSettings.wp.get();
$('.breaks').empty();
$('.breaks tbody').empty();
BackendSettings.wp.setup(workingPlan);
BackendSettings.wp.timepickers(false);
}, 'json').fail(GeneralFunctions.ajaxFailureHandler);

View file

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