Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 17th, 2010 | Syntax: None | Size: 0.69 KB | Hits: 62 | Expires: Never
Copy text to clipboard
  1. jQuery.post("pgPlaylistTrackSearch.do", jQuery("#playlistTrackSearchForm input:not(#searchExcludedTracks), #playlistTrackSearchForm select").serialize(),
  2.             function(html){
  3.                 jQuery("#resultSearch").html(html);
  4.                 Sortable.create("ulResults", {dropOnEmpty:true,handle:'handle',tag:'tr', constraint:false, onUpdate:function(){totalIncludedTracks = (jQuery('#ulResults :input').size()<=6) ? totalIncludedTracks : 6-jQuery('#ulResults :input').size()} });
  5.                 Sortable.create("excludedTracks", {dropOnEmpty:true,handle:'handle',tag:'tr', containment:["ulResults", "excludedTracks"], constraint:false });
  6.             }
  7.         );
  8.         return false;