Guest User

Untitled

a guest
May 15th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $(function() {
  2.         $("#filemanager").selectable({
  3.             filter: 'tr',
  4.             start: function() {
  5.                 $("tr.ui-selected").each(function() {
  6.                     $(this).draggable('destroy');
  7.                 });
  8.             },
  9.             stop: function() {
  10.                 $("tr.ui-selected").draggable({
  11.                     helper: function() {
  12.                         var dom = [];
  13.  
  14.                         dom.push("<div style=\"border:5px solid black;width:753px;height:30px;line-height:25px;\">",
  15.                             "<center>Files Selected: 1</center></div>");
  16.  
  17.                         return $(dom.join(''));
  18.                     },
  19.  
  20.                     revert: 'invalid',
  21.                     appendTo: 'parent',
  22.                     containment: '#filemanager',
  23.                     axis: 'y',
  24.                     cursor: '-moz-grabbing'
  25.                 });
  26.             }
  27.         });
  28.     });
Add Comment
Please, Sign In to add comment