Skip to content

Commit

Permalink
Fix the Letter overview color in case of late less loading
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverpool committed May 19, 2015
1 parent 39f680d commit 21dae2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generator/static/js/patanet.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ $(function() {
return;
}
var prefix_bg = letters.first().css('background-color');
if(prefix_bg == 'transparent'){
// if for some reason the CSS wasn't loaded
setTimeout(letters_overview_background, 500);
return;
}
prefix_bg = prefix_bg.substr(0, prefix_bg.length - 4);
$('.letter_overview a').each(function(){
$this = $(this);
Expand Down

0 comments on commit 21dae2c

Please sign in to comment.