Résolu : Afficher les classes CI personnalisées sur Navigator – ServiceNow Community ‘); $(this).append(divContainer); $(divContainer).fadeIn(); var userId = $(this).attr(‘href’).replace(/.*/user-id//gi,”); var windowWidth = $(window).width(); var gauche = $(this).offset().left; var cardWidth = divContainer.outerWidth(); if ((left + cardWidth) > (windowWidth – 25)) { var réglage = (left + cardWidth) – (windowWidth + 25) + 50; divContainer.css(‘left’, (-1 * ajustement) + ‘px’); } $.ajax({ url : ‘/community/s/plugins/custom/servicenow/servicenow/theme-lib.profile-card?tid=9101022141515284487’, tapez : ‘post’, dataType : ‘html’, data : { “userId”: userId}, beforeSend : function() {}, succès : function(data) { $(‘.info-container’, divContainer).append(data }, erreur : function() { $(‘ .info-container’, divContainer).append(”); }, complet : function() { $(‘.spinner’, divContainer).remove(); }); $(‘body’).on(‘click’, ‘.user-profile-card’, function(evt) { if (!$(evt.target).hasClass(‘profile-link’)) { evt.preventDefault (); } evt.stopPropagation(); }); })(LITHIUM.jQuery); ;(function($) { // Appliquer la fonction de fermeture function applyClose(){ $(‘.InfoMessage, .FilteredByLabelName, .FilteredByMessageStatus’).each(function(){ $(this).find(‘[role=”alert”] p’).append(”); }); $(document).on(‘cliquez’,'[role=”alert”] .alert-close’,function(evt){ $(evt.target).parents(‘[role=”alert”]’).parent(‘div’).remove(); }); } // Fonction de lecture du document $(document).ready(function() { applyClose(); $( document ).ajaxComplete(function(event, xhr, settings) { applyClose(); }); }); })(LITHIUM.jQuery); LITHIUM.PartialRenderProxy({“limuirsComponentRenderedEvent”:”LITHIUM:limuirsComponentRendered”,”relayEvent”:”LITHIUM:partialRenderProxyRelay”,”listenerEvent”:”LITHIUM:partialRenderProxy”}); LITHIUM.AjaxSupport({“ajaxOptionsParam”:{“event”:”LITHIUM:partialRenderProxyRelay”,”parameters”:{“javascript.ignore_combine_and_minify”:”true”}},”tokenId”:”ajax”,”elementSelector”:document ,”action”: “partialRenderProxyRelay”, “feedbackSelector”: false, “url”: LITHIUM.Auth.API_URL = “/community/util/authcheckpage”; LITHIUM.Auth.LOGIN_URL_TMPL = “/community/s/plugins/common /feature/oidcss/sso_login_redirect/providerid/default?referer=https%3A%2F%2FREPLACE_TEXT”; LITHIUM.Auth.KEEP_ALIVE_URL = “/community/status/blankpage?keepalive”; LITHIUM.Auth.KEEP_ALIVE_TIME = 300000; LITHIUM.Auth .CHECK_SESSION_TOKEN = ‘5GV2_UtxhKuAHvQXUYm2PJCEiNLpxY8W1JmEGhvvYWc.’; LITHIUM.AjaxSupport.useTickets = false;
#Résolu #afficher #les #classes #personnalisées #sur #navigateur
Résolu : afficher les classes CI personnalisées sur le navigateur
26