diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-29 02:51:00 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-29 02:51:00 +0400 |
commit | 8ce5e72519ca24e6d540f3685389d072f1dd30f9 (patch) | |
tree | 06927f83cf3ce58cf4010a5abc7853b8977fbe0b /public | |
parent | ee95def580165b425ffb8ed828d72e4033a34da1 (diff) |
Use data-aspect_id, because integer html ids freak me out.
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/aspect-sorting.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/aspect-sorting.js b/public/javascripts/aspect-sorting.js index 68df5c6c2..443c5ecaf 100644 --- a/public/javascripts/aspect-sorting.js +++ b/public/javascripts/aspect-sorting.js @@ -5,9 +5,9 @@ $(document).ready(function() { $('#aspect_nav.left_nav .all_aspects .sub_nav').sortable({ - items: 'li[id]', + items: "li[data-aspect_id]", update: function(event, ui) { - var order = $(this).sortable('toArray'), + var order = $(this).sortable("toArray", {attribute: "data-aspect_id"}), obj = { 'reorder_aspects': order, '_method': 'put' }; $.ajax('/user', { type: 'post', dataType: 'script', data: obj }); }, |