Corrected initial values of working plan script.

This commit is contained in:
alext 2017-12-20 15:16:09 +01:00
parent 716378f074
commit 3a9ae7f4a3

View file

@ -172,8 +172,8 @@
var id = $(this).attr('id'); var id = $(this).attr('id');
if ($(this).prop('checked') == true) { if ($(this).prop('checked') == true) {
$('#' + id + '-start').prop('disabled', false).val('09:00 AM'); $('#' + id + '-start').prop('disabled', false).val('9:00 AM');
$('#' + id + '-end').prop('disabled', false).val('18:00 PM'); $('#' + id + '-end').prop('disabled', false).val('6:00 PM');
} else { } else {
$('#' + id + '-start').prop('disabled', true).val(''); $('#' + id + '-start').prop('disabled', true).val('');
$('#' + id + '-end').prop('disabled', true).val(''); $('#' + id + '-end').prop('disabled', true).val('');
@ -190,7 +190,7 @@
var tr = var tr =
'<tr>' + '<tr>' +
'<td class="break-day editable">' + EALang.sunday + '</td>' + '<td class="break-day editable">' + EALang.sunday + '</td>' +
'<td class="break-start editable">09:00 AM</td>' + '<td class="break-start editable">9:00 AM</td>' +
'<td class="break-end editable">10:00 AM</td>' + '<td class="break-end editable">10:00 AM</td>' +
'<td>' + '<td>' +
'<button type="button" class="btn btn-default btn-sm edit-break" title="' + EALang.edit + '">' + '<button type="button" class="btn btn-default btn-sm edit-break" title="' + EALang.edit + '">' +