hjg
2024-10-28 d0b1f1f651689ff4414231eb58a3a8039f42dadb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var PortletDraggable = function () {
 
    return {
        //main function to initiate the module
        init: function () {
 
            if (!jQuery().sortable) {
                return;
            }
 
            $("#sortable_portlets").sortable({
                connectWith: ".portlet",
                items: ".portlet",
                opacity: 0.8,
                coneHelperSize: true,
                placeholder: 'sortable-box-placeholder round-all',
                forcePlaceholderSize: true,
                tolerance: "pointer"
            });
 
            $(".column").disableSelection();
 
        }
 
    };
 
}();