Commit 9d87861e by Azhan Hannan

changes mandays

parent ed309690
......@@ -76,7 +76,7 @@
</table>
<button class="ui blue button" type="submit">Save</button>
<button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Baasack</button>
<button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Back</button>
</form>
</div>
......@@ -132,15 +132,9 @@
}
totdays = document.getElementById('totaldays');
if (isNaN(totdays)) {
totdays = 0;
}
totdays.value = totaldays;
tothours = document.getElementById('totalhours');
if (isNaN(tothours)) {
tothours = 0;
}
tothours.value = totaldays * 8;
}
......@@ -166,21 +160,16 @@
if (isNaN(currhours)) {
currhours = 0;
}
totalhours += currhours;
}
}
tothours = document.getElementById('totalhours');
if (isNaN(tothours)) {
tothours = 0;
}
tothours.value = totalhours;
totdays = document.getElementById('totaldays');
if (isNaN(totdays)) {
totdays = 0;
}
totdays.value = totalhours/8;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment