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
Hi Barby,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.