Factored sidebar draggables into application.js
[lyrix.git] / public / javascripts / application.js
blobb31ff58b26727e4bc380665f3dda3c74aa5782f9
1 // Place your application-specific JavaScript functions and classes here
2 // This file is automatically included by javascript_include_tag :defaults
4 Lyrix = {}; // Our own little namespace.
6 // Just a behaviors extraction of Script.aculo.us Draggable
7 Lyrix.Draggable = Behavior.create({
8 initialize: function(options) {
9 this.draggable = new Draggable(this.element, options);
11 });
13 Event.addBehavior({
14 '.song': Lyrix.Draggable({handle: 'drag_me', revert: true}),
15 '#songs_list': function() {
18 });