Skip to content

Commit

Permalink
Fix list up/down functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesypoof committed Jun 29, 2016
1 parent 658a87e commit 52b2db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions couch/theme/_system/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ function _render_list_updown( $horizontal=0 ){
$html .='<a class="up icon tt" href="#" onclick="k_updown( \''.$page_id.'\', 1 ); return false;" title="'.$FUNCS->t($dir).'">'.$FUNCS->get_icon($icon).'</a>';
}
else{
$html .='<a class="up" href="#" onclick="return false;">'.$FUNCS->get_icon('blank').'</a>';
$html .='<span class="icon-spacer"></span>';
}

// down arrow
Expand All @@ -1309,7 +1309,7 @@ function _render_list_updown( $horizontal=0 ){
$html .='<a class="down icon tt" href="#" onclick="k_updown( \''.$page_id.'\', 0 ); return false;" title="'.$FUNCS->t($dir).'">'.$FUNCS->get_icon($icon).'</a>';
}
else{
$html .='<a class="down" href="#" onclick="return false;">'.$FUNCS->get_icon('blank').'</a>';
$html .='<span class="icon-spacer"></span>';
}

static $done=0;
Expand All @@ -1333,6 +1333,7 @@ function k_updown( id, dir ){
})
.done(function( data ){
$( '#listing' ).replaceWith( $( $.parseHTML( data ) ).find( '#listing' ) );
$( '#listing' ).html( $( '#listing' ).html() );
})
.always(function() {
$('#k_overlay').css('display', 'none');
Expand Down

0 comments on commit 52b2db5

Please sign in to comment.