Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Another JQuery question "CUTE" (Move Elements on Service Desk Customer Portal"

Stephan_Mallmann November 29, 2018

Hi folks,

my problem ist that i will move the "div.activity-item.request-fields" (Issue Detail Fields) in the Customer Portal from the bottom to the top like you can see in my screenshot.

image.png

 

with the following code, executed by the cute plugin I am able to prepend the "Hello" on this position like you can see too in the screenshot above. 

 setTimeout(function(){
if (jQuery('#jsonPayload').length) {
jQuery( ".cv-request-activity" ).prepend( "<b>Hello </b>" );
}
}, 1)(jQuery);

The problem is now if i try to move the "div.activity-item.request-fields" nothing happens

 setTimeout(function(){
if (jQuery('#jsonPayload').length) {
jQuery( ".cv-request-activity" ).prepend( "div.activity-item.request-fields" );
}
}, 1)(jQuery);

image.png

Can someone help me with that problem?

Thank you a lot and best regards,

Stephan

1 answer

1 accepted

0 votes
Answer accepted
Stephan_Mallmann November 29, 2018

Sorry Boys and Girls

I got it :-)

Use the following Code for it :-)

setTimeout(function(){
if (jQuery('#jsonPayload').length) {
jQuery('ul.vp-activity-list').find('div.activity-item.request-fields.clearfix').prependTo('.vp-activity-title');
}
}, 1)(jQuery);

 

Bye Bye

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events