Permalink
Browse files

Layout reorder is done via a handle insteadl of the whole row

  • Loading branch information...
1 parent 4d20c57 commit 01853c1c6444360640dfb1bdd5159566b318e3b4 @raulriera raulriera committed with Mar 28, 2010
Showing with 3 additions and 1 deletion.
  1. BIN images/reorder-children.png
  2. +3 −1 views/layouts/index.cfm
View
BIN images/reorder-children.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 views/layouts/index.cfm
@@ -13,7 +13,8 @@
<cfoutput query="layouts">
<tr id="#id#">
<td>#linkTo(text=name, route="edit_layout_path", key=id, class="layout")#</td>
- <td>#linkTo(text='#imageTag("remove.png")#', route='delete_layout_path', key=id, confirm='Are you sure you want to delete this Layout? This cannot be undone!')#</td>
+ <td>#imageTag(source="reorder-children.png", id="sorterHandle")#
+ #linkTo(text='#imageTag("remove.png")#', route='delete_layout_path', key=id, confirm='Are you sure you want to delete this Layout? This cannot be undone!')#</td>
</tr>
</cfoutput>
</tbody>
@@ -27,6 +28,7 @@
<script type="text/javascript">
$(".table tbody").sortable({
helper: fixHelper,
+ handle: '#sorterHandle',
update: function(event, ui) {
var order = $(this).sortable('toArray');

0 comments on commit 01853c1

Please sign in to comment.