This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| neat_things [2018/03/26 15:07] pawel Added color drop down | neat_things [2019/01/24 13:03] (current) root | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| } | } | ||
| }); | }); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Add light-yellow background to a field' | ||
| + | |||
| + | If you'd like to highlight the background of the field' | ||
| + | <code java> | ||
| + | <script type=" | ||
| + | target = document.getElementById(' | ||
| + | if (target) { | ||
| + | target.style=" | ||
| + | } | ||
| + | |||
| </ | </ | ||
| </ | </ | ||
| Line 45: | Line 58: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | === Display radio button option that was selected with alert message === | ||
| + | <code java> | ||
| + | <script type=" | ||
| + | jQuery(document).ready(function($) { | ||
| + | JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, | ||
| + | callVerifyAndUpdateFunction(); | ||
| + | }); | ||
| + | callVerifyAndUpdateFunction(); | ||
| + | function | ||
| + | var radioValue1=document.getElementById(' | ||
| + | var radioValue2=document.getElementById(' | ||
| + | var radioValue3=document.getElementById(' | ||
| + | if (radioValue1){ | ||
| + |  | ||
| + | } | ||
| + | if (radioValue2){ | ||
| + |  | ||
| + | } | ||
| + | if (radioValue3){ | ||
| + |  | ||
| + | } | ||
| + |  | ||
| + | |||
| + | } | ||
| + | |||
| + | }); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| ==== Adding messages to your JIRA tickets ==== | ==== Adding messages to your JIRA tickets ==== | ||
| Line 61: | Line 104: | ||
| In order to accomplish this, you need to add span code as you see it in the screenshot: | In order to accomplish this, you need to add span code as you see it in the screenshot: | ||
| - | {{: | + | {{: | 
| + | |||
| + | ==== Disabling a field from being seen using banner ==== | ||
| + | **<color red>have not confirmed this yet</ | ||
| + | Link: [[https:// | ||
| + | I found this in the above linked forum discussion, not tested yet. | ||
| + | <code java> | ||
| + | <script type=" | ||
| + | (function($) { | ||
| + | AJS.toInit(function(){ | ||
| + | // init on load | ||
| + | AJS.$("# | ||
| + | }) | ||
| + | JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, | ||
| + | // init on refresh | ||
| + | AJS.$("# | ||
| + | }); | ||
| + | })(AJS.$); | ||
| + | </ | ||
| + | </ | ||