I want draggable and sortable contents by admin. So, installed jQuery UI and put this code in my main.js:
$(function() {
$( ".panels-flexible-region" ).sortable({
revert: true
});
$( "#makyaj .views-row" ).draggable({
connectToSortable: ".panels-flexible-region",
helper: "clone",
revert: "invalid"
});
$( "ul, li" ).disableSelection();
});
Yes, it works. But i want use this option only admin user. Whether View Sort Type: Jquery Draggable and qhat sets the admin users so they can see it.
Is it possible? Can i integration Views and jQuery UI Draggable?