Add image to the Service Desk login page

Barby Everett October 4, 2017

We are upgrading our Service desk from 3.1.6 to 3.4.1.  In our current version, we have an image that displays in the center of the login page (above the login panel) that we injected using the CUTE add-on.  The code does not seem to work in the newer version, and I've searched everywhere and cannot find an answer.

In our current environment, the template.js code is as follows:

AJS.toInit(function($) {
  if ($('#jsonPayload').length) {
      var banner = jQuery {
           '<div id="cute-jsd-banner">'
          + '</div>';
      banner.insertAfter('#header');
}
});

This works in version 3.1.6 but not in 3.4.1.  Can anyone tell me how to get the image to display?

Thanks,

Barby

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2017

Hi Barby,

  • Are you getting any errors in the Developer Console?

In the most current version of Service Desk the CUTE default code to show the image using the following:

// Execute after the page was fully loaded
jQuery(function(jQuery){
    "use strict"
    
    var elementToMove = jQuery('#cuteMessageContainer');
    elementToMove.insertAfter('#header');
    
}); 

I have not been able to test it myself but if your code supports the above snippet you may be able to use that.


Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events