Commit b3566ddd authored by Niels Holt's avatar Niels Holt

Bug fix: Selected language passed on to area selection

parent 00a78468
......@@ -385,7 +385,12 @@
.append( $('<a/>')
.addClass('link')
.i18n({ da:'Vælg', en:'Select'})
.attr('href', window.location.href.split('#')[0].split('?')[0]) //<- not pretty
//HER.on('click', function(){
//HERconsole.log(
//HER window.location.href.split('#')[0].split('?')[0] + (window.i18next.language=='en'?'?lang=en':'')
//HER)})
//HER .attr('href', window.location.href.split('#')[0].split('?')[0]) //<- not pretty
.attr( 'href', window.location.href.split('#')[0].split('?')[0]+(window.i18next.language=='en'?'?lang=en':'') ) //<- not pretty
.css({float: 'right'})
);
......
......@@ -414,7 +414,8 @@
hrefArray.pop();
hrefArray.push('select');
hrefArray.push('index.html');
if (window.i18next.language == 'en')
search = search ? search + '&lang=en' : '?lang=en';
window.location.href = hrefArray.join('/') + search + (hash ? '#' + hash : '');
return;
//throw new Error('Valid domain not specified: ' + window.domain);
......
......@@ -125,7 +125,7 @@
event.target.setStyle( style );
select.selectedIndex = 0;
});
rect.getPane().setAttribute('title', area.name);
//REMOVE DUE TO UNKNOWN BUG rect.getPane().setAttribute('title', area.name);
}
//Select the area
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment