Last active
July 30, 2019 13:07
-
-
Save mikz/559b08992284e3a15b811b9189db6501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[inTime]\"]"))a.value="09:00";for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[breakDuration]\"]"))a.value="01:00";for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[outTime]\"]"))a.value="18:00",a.dispatchEvent(new%20FocusEvent("blur")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[inTime]"]')) { element.value = '09:00' }; | |
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[breakDuration]"]')) { element.value = '01:00' }; | |
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[outTime]"]')) { element.value = '18:00'; element.dispatchEvent(new FocusEvent('blur')) }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment