Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Commit

Permalink
Merge pull request #203 from jdlrobson/39720
Browse files Browse the repository at this point in the history
ensure if marking a list as incomplete it is not empty
  • Loading branch information
awjrichards-zz committed Aug 28, 2012
2 parents 2810893 + e8a6dae commit 6b1f01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ require( [ 'jquery', 'l10n', 'geo', 'api', 'templates', 'monuments', 'monument',

$( "#results" ).data( 'monuments', monuments );
// if next property is set then there are more results so allow access to them
if ( monuments.next && currentSortMethod !== 'distance' ) {
if ( monuments.next && monuments.length > 0 && currentSortMethod !== 'distance' ) {
$( '#results' ).addClass( 'incomplete' );
$( '<li class="footer"></li>' ).appendTo( '#results' );
} else {
Expand Down

0 comments on commit 6b1f01e

Please sign in to comment.