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

Include different version of jQuery UI for plugin

Yves Riel [Okapya]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 2, 2015

I am using jQuery UI Sortable in my plugin and was hoping to use the one shipped with JIRA 6 (v1.8.11). Unfortunately, I have found a bug that has been fixed in a subsequent version of jQuery UI. How can I load a different version of UI without conflicting with JIRA's version or that of another plugin? I know I can use the noconflict property but has anyone done this so it saves me the headache of figuring it out?

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Yves Riel [Okapya]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 2, 2015

In case it helps other, what I finally did was to copy the sortable function of a more recent jQuery UI in another script and registered the function with another name so that it doesn't enter in conflict with the origin sortable.

(function( $, undefined ) {
$.widget("ui.newsortable", $.ui.mouse, {
	widgetEventPrefix: "sort",
	ready: false,
 
	.
	.
	.
 
});
$.extend($.ui.newsortable, {
	version: "1.8.24"
});
})(jQuery);
TAGS
AUG Leaders

Atlassian Community Events