- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 08:09 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 10:35 AM
Works on Fuji
jQuery('#link\\.incident\\.time_worked').parent().hide();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 10:35 AM
Works on Fuji
jQuery('#link\\.incident\\.time_worked').parent().hide();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:14 PM
it works ,thanks so much Kalaiarasan. but what is the root cause why it is not working normally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:31 PM
DOM structure has changed. That happens with releases. Hence, they say avoid DOM manipulation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:36 PM
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 changed. please check the image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 11:41 PM
Make the field read only if you want it to be non editable. Dont use DOM manipulation for this.