...
Code Block | ||
---|---|---|
| ||
<script> var bannerId = 1; var url = '/secure/Dashboard' var bannerSelector = '.jibrokBanner[bannerid=' + bannerId + ']' if(window.location.href.indexOf(url) >= 0){ AJS.$(bannerSelector).show() } else { AJS.$(bannerSelector).hide() } </script> |
How to hide profile link or menu?
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script>
//Jira
AJS.$('a#view_profile').hide();//hide profile
AJS.$('a#log_out').hide();//hide login
AJS.$('a#header-details-user-fullname').off('click')//Do not show drop-down menu when clicking on a profile
//Jira Service Desk
AJS.$('a.js-profile').hide();//hide profile
AJS.$('a.js-logout').hide();//hide login
AJS.$('a.cp-user-profile').off('click');//Do not show drop-down menu when clicking on a profile
</script> |
How to add message as flag?
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script>
var myFlag = AJS.flag({
type: 'success',
body: '<strong>TEST-745</strong> Message.' +
'<ul class="aui-nav-actions-list">' +
'<li><a class="aui-button aui-button-link" href="#">Link one</a></li>' +
'<li><button class="aui-button aui-button-link">Link two</button></li>' +
'</ul>'
});
</script> |
How to add message as popup(dialog)?
...
Code Block | ||||
---|---|---|---|---|
| ||||
<section id="demo-dialog" class="aui-dialog2 aui-dialog2-small aui-layer" role="dialog" aria-hidden="true">
<header class="aui-dialog2-header">
<h2 class="aui-dialog2-header-main">Captain...</h2>
<button class="aui-dialog2-header-close" aria-label="close">
<span class="aui-icon aui-icon-small aui-iconfont-close-dialog"></span>
</button>
</header>
<div class="aui-dialog2-content">
<p>Popup message</p>
</div>
<footer class="aui-dialog2-footer">
<div class="aui-dialog2-footer-actions">
<button id="dialog-submit-button" class="aui-button aui-button-primary">Make it so</button>
</div>
</footer>
</section>
<script>
AJS.dialog2("#demo-dialog").show();
// Hides the dialog
AJS.$("#dialog-submit-button").on('click', function (e) {
e.preventDefault();
AJS.dialog2("#demo-dialog").hide();
});
</script> |
Dashboard jql filter result in realtime - How do refresh gadget(Filter results) every 10 seconds
...
breakoutMode | wide |
---|---|
language | js |
...
Page Tree | ||
---|---|---|
|