Hello,
Looking for support on this bit of custom javascript:
//Change iCal text to Subscribe (not Download)
//Would like this to work for all calendar 'download events' buttons
$(document).on('knack-scene-render.scene_492', function(event, view, data) {
$('#view_1973').contents().filter(function() {
return this.nodeType == 3
}).each(function(){
this.textContent = this.textContent.replace('download events', 'right click & copy to subscribe to calendar');
});
});
Essentially I would like to change any instance of the text "download events", which is automatically displayed when i enable the Download iCal option in Calendars.
For some reason, what I have here is not producing the desired effect.
Please advise.
Thanks, Jas