Skip to content

Commit

Permalink
Refactored so that we only display the order icon if there are more t…
Browse files Browse the repository at this point in the history
…han 1 item
  • Loading branch information
baphled committed Jun 30, 2010
1 parent 897d4ba commit 617b599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/sortable_list.js
Expand Up @@ -19,7 +19,7 @@ $(document).ready(function() {
$.fn.customSortable = function() {

// if no handlers are rendered we don't need an order button
if ($('span.handler').size() > 0) {
if ($('span.handler').size() > 1) {
$button = $("<button>")
.append('Order')
.addClass('order_icon ui-state-default ui-priority-primary ui-corner-all')
Expand Down

0 comments on commit 617b599

Please sign in to comment.