Commit 9d87861e by Azhan Hannan

changes mandays

parent ed309690
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</table> </table>
<button class="ui blue button" type="submit">Save</button> <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> </form>
</div> </div>
...@@ -132,15 +132,9 @@ ...@@ -132,15 +132,9 @@
} }
totdays = document.getElementById('totaldays'); totdays = document.getElementById('totaldays');
if (isNaN(totdays)) {
totdays = 0;
}
totdays.value = totaldays; totdays.value = totaldays;
tothours = document.getElementById('totalhours'); tothours = document.getElementById('totalhours');
if (isNaN(tothours)) {
tothours = 0;
}
tothours.value = totaldays * 8; tothours.value = totaldays * 8;
} }
...@@ -166,21 +160,16 @@ ...@@ -166,21 +160,16 @@
if (isNaN(currhours)) { if (isNaN(currhours)) {
currhours = 0; currhours = 0;
} }
totalhours += currhours; totalhours += currhours;
} }
} }
tothours = document.getElementById('totalhours'); tothours = document.getElementById('totalhours');
if (isNaN(tothours)) {
tothours = 0;
}
tothours.value = totalhours; tothours.value = totalhours;
totdays = document.getElementById('totaldays'); totdays = document.getElementById('totaldays');
if (isNaN(totdays)) {
totdays = 0;
}
totdays.value = totalhours/8; 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