fixed issue where timeago strings were not rendering in the correct language on cold loads

v1.18.x
Julian Lam 11 years ago
parent 4b45a4b168
commit 2430b970f3

@ -57,7 +57,9 @@
break;
}
$.getScript(RELATIVE_PATH + '/vendor/jquery/timeago/locales/jquery.timeago.' + languageCode + '.js').fail(function() {
$.getScript(RELATIVE_PATH + '/vendor/jquery/timeago/locales/jquery.timeago.' + languageCode + '.js').success(function() {
$('span.timeago').timeago();
}).fail(function() {
$.getScript(RELATIVE_PATH + '/vendor/jquery/timeago/locales/jquery.timeago.en.js');
});

Loading…
Cancel
Save