Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $("#filemanager").selectable({
- filter: 'tr',
- start: function() {
- $("tr.ui-selected").each(function() {
- $(this).draggable('destroy');
- });
- },
- stop: function() {
- $("tr.ui-selected").draggable({
- helper: function() {
- var dom = [];
- dom.push("<div style=\"border:5px solid black;width:753px;height:30px;line-height:25px;\">",
- "<center>Files Selected: 1</center></div>");
- return $(dom.join(''));
- },
- revert: 'invalid',
- appendTo: 'parent',
- containment: '#filemanager',
- axis: 'y',
- cursor: '-moz-grabbing'
- });
- }
- });
- });
Add Comment
Please, Sign In to add comment