Hey guys,
anyone has any experience with injecting JS via announcement banner to only certain parts of the application ?
In my use case, I need to change the description in insight object Attach Files "screen".
If there is any other/better way to do this, I am more than welcome in trying it out.
Thanks
Marek
For something like this (not that this is best practice), I would use a public library like "arrive"
Then you can respond to the "arrival" of an object on screen with a line of code like:
AJS.$(document).arrive('#rlabs-attach-file .description', function(){
this.innerHTML = "Your custom description";
this.borderStyle = 'solid';
this.borderColor = 'red';
})
If you have scriptrunner, you can deploy arrive as a global resource, otherwise, there might not be any choice but to include the minified arrive into your announcement box (about 5k) - if that's even possible.
Maybe there are better ways. Such as MutableObserver
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.