First Initial
This commit is contained in:
27
wwwroot/BackendScript/js/draggable-portlet.js
Normal file
27
wwwroot/BackendScript/js/draggable-portlet.js
Normal file
@@ -0,0 +1,27 @@
|
||||
var DraggablePortlet = function () {
|
||||
|
||||
return {
|
||||
//main function to initiate the module
|
||||
init: function () {
|
||||
|
||||
if (!jQuery().sortable) {
|
||||
return;
|
||||
}
|
||||
|
||||
$("#draggable_portlets").sortable({
|
||||
connectWith: ".card",
|
||||
items: ".card",
|
||||
opacity: 0.8,
|
||||
coneHelperSize: true,
|
||||
placeholder: 'sortable-box-placeholder round-all',
|
||||
forcePlaceholderSize: true,
|
||||
tolerance: "pointer"
|
||||
});
|
||||
|
||||
$(".column").disableSelection();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
Reference in New Issue
Block a user