Skip to content

Instantly share code, notes, and snippets.

@joedeveloper
Created February 17, 2010 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedeveloper/306104 to your computer and use it in GitHub Desktop.
Save joedeveloper/306104 to your computer and use it in GitHub Desktop.
addDrag: function(v){
var group = ['child'];
if(v.hasClass('story')){
group = ['story'];
}
var dd = new Y.DD.Drag({
node: v,
groups: group,
target: {
padding: '0 0 0 20'
}
}).plug(Y.Plugin.DDProxy, {
moveOnEnd: false
}).plug(Y.Plugin.DDNodeScroll, {
node: Y.Node.one('#story_tickets_list_scroll')
}).plug(Y.Plugin.DDWinScroll);
this.drags.push(dd);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment