hide play/pause button for time_worked field for Incident

Deepa Srivastav
Kilo Sage

I am trying to hide play/pause button for time_worked field for Incident.

I tried using below code in onload :

$('link.incident.time_worked').hide(); but its not working for me. I tried this in Fuji and Geneva.

Only the image gets hidden, but a square still appears and we can click that too which starts/pause the timer.

1 ACCEPTED SOLUTION

Works on Fuji



jQuery('#link\\.incident\\.time_worked').parent().hide();


View solution in original post

19 REPLIES 19

Works on Fuji



jQuery('#link\\.incident\\.time_worked').parent().hide();


it works ,thanks so much Kalaiarasan. but what is the root cause why it is not working normally.


DOM structure has changed. That happens with releases. Hence, they say avoid DOM manipulation.


ok thanks ...



I have similar kind of problem for calendar icon of 'When' field in cmn_schedule_span table.I want to make it read only/disable for some roles.i am not getting handle of the same. Field is becoming read only if I use getelemnetbyid ... but still calendar is editable and thus field value can be changedcmn_schedule_span.png. please check the image.


Make the field read only if you want it to be non editable. Dont use DOM manipulation for this.