Skip to content

Commit

Permalink
Fixed bug where graph maximum may not always be current.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius5150 committed Feb 12, 2014
1 parent a16b85a commit 4f34c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/msm-sitemap-admin.js
Expand Up @@ -77,6 +77,9 @@ jQuery( document ).ready( function() {
jQuery( '#sitemap-count' ).html( response['total_sitemaps'] );
jQuery( '#sitemap-indexed-url-count' ).html( response['total_indexed_urls'] );

// Make the maximum get calculated from the current dataset
max.count = -1;

var formatted_data = [];
for ( var e in response['sitemap_indexed_urls'] ) {
formatted_data.push( [ new Date(e).getTime(), response['sitemap_indexed_urls'][e], e ] );
Expand Down

0 comments on commit 4f34c67

Please sign in to comment.