diff --git a/glotdict.js b/glotdict.js
index 923b685..b23f328 100644
--- a/glotdict.js
+++ b/glotdict.js
@@ -43,8 +43,7 @@ jQuery(document).ready(function () {
*/
function gd_add_project_links() {
if (jQuery('.gp-content .breadcrumb li:last-child a').length > 0) {
- var lang = jQuery('.gp-content .breadcrumb li:last-child a').attr('href');
- lang = lang.split('/');
+ var lang = jQuery('.gp-content .breadcrumb li:last-child a').attr('href').split('/');
lang = lang[lang.length - 2];
jQuery('.gp-content').prepend('' + jQuery('.gp-content .breadcrumb li:last-child a').html() + ' Projects to Translate');
jQuery('.gp-content h2').prepend('Translation Global Status');
@@ -60,7 +59,7 @@ jQuery(document).ready(function () {
jQuery('.gp-content').prepend('');
jQuery('.gd_scroll').on('click', function () {
var row = jQuery("#stats-table tr th a:contains('" + gd_get_lang() + "')");
- row.html(' ' + row.html() + '');
+ row.html(' ' + row.html() + '');
jQuery('html, body').animate({scrollTop: row.offset().top - 50});
});
}