Issue #0001547: correct url

This commit is contained in:
Aram HARUTYUNYAN 2013-05-29 11:44:23 +00:00
parent 6d92543216
commit 23c4a0a5aa

View File

@ -2,8 +2,8 @@ $(document).ready(function(){
$('img.flag').on('click', function() {
var url = window.location.href;
$.post('user/lang', {lang: $(this).attr('id')}, function(data){
window.location.href = url;
$.post('/user/lang', {lang: $(this).attr('id')}, function(data){
window.location.href = url;
});
});