Permalink
Browse files

fix sortable js

  • Loading branch information...
1 parent c043137 commit a3524a2d09b2ad08cdf3e5107edeb7b0ed0592bf Richard Zheng committed Dec 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/assets/javascripts/jquery/active_scaffold_sortable.js
@@ -12,6 +12,7 @@ ActiveScaffold.sortable = function(element) {
element = content.closest('.sortable-container');
form = element.closest('form.as_form').length > 0;
} else {
+ element = jQuery(element);
form = element.closest('form.as_form').length > 0;
if (form) content = element;
else content = element.find('.records:first');

0 comments on commit a3524a2

Please sign in to comment.