Skip to content

Instantly share code, notes, and snippets.

@sters
Last active January 2, 2016 23:49
Show Gist options
  • Select an option

  • Save sters/8379100 to your computer and use it in GitHub Desktop.

Select an option

Save sters/8379100 to your computer and use it in GitHub Desktop.
test
(function(){
function exec($){
$("head").append("<style>.ui-sortable-placeholder{display: block;}</style>")
$.getScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js")
.then(function(){
$(".compact-items").sortable();
});
}
(function jQuery_load(){
var head = document.getElementsByTagName("head")[0];
var sc = document.createElement("script");
sc.src = "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";
head.appendChild(sc);
sc.onload = function(){
jQuery.noConflict();
exec(jQuery);
};
})();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment