From 0a7ebb28f0e36041ffbdcc586df05ee376c7123b Mon Sep 17 00:00:00 2001 From: Matt Moriarity Date: Mon, 30 Jul 2007 19:02:38 -0400 Subject: [PATCH] Code formatting. I'm a little picky. --- public/javascripts/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 62beeaa..f81a432 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -83,7 +83,7 @@ Lyrix.DeleteLink = Behavior.create({ // ================================= Event.addBehavior({ // Add some magical in-place-editors - 'span.in_place_editor_field': Lyrix.InPlaceEditor(), + 'span.in_place_editor_field': Lyrix.InPlaceEditor, // Delete things using a hidden form 'a.deletable': Lyrix.DeleteLink, @@ -111,6 +111,7 @@ Event.addBehavior({ new Ajax.Request('/usages?show_id=' + $P('show_id'), { parameters: 'id=' + encodeURIComponent(element.id.gsub('song_', '')), onComplete: function() { + // Make sure the sortable works for new elements Sortable.create('songs_list', sortableOptions); } }); -- 2.11.4.GIT