Skip to content

Instantly share code, notes, and snippets.

@SlyNet
Created September 2, 2011 15:13
Show Gist options
  • Save SlyNet/1188876 to your computer and use it in GitHub Desktop.
Save SlyNet/1188876 to your computer and use it in GitHub Desktop.
this.downloadedContent = new Array(navigationApi.getItems().length)
if navigationApi.getItems().length > 3
overviewNavigation.appendItemContent(navigationApi, i) for i in [1..3]
@appendItemContent: (api, itemIndex) =>
url = @groupRenderUrl + @getItemUrl(api.getItems()[itemIndex])
$.ajax {
url,
async: false,
success: (data) =>
$('.overview-group .items').append data
this.downloadedContent[itemIndex] = 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment