portlet-draggable.js 655 B

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