Created
September 2, 2011 15:13
-
-
Save SlyNet/1188876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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