Commit 39bc1086 authored by Rejo Zenger's avatar Rejo Zenger

Link from home to call-page now respecting language setting.

parent 9612825b
......@@ -2,7 +2,7 @@
; Main site
GET @home:/@lang=Main->home
GET|POST @feedback:/@lang/feedback=Main->feedbackform
GET|POST @call:/call/@id=Main->call
GET|POST @call:/@lang/call/@id=Main->call
GET @contactslist:/contactslist=Main->contactslist
GET @feedbacksip:/calls/@callid=SIP->feedbacksip
GET @campaign:/@lang/campaign=Main->campaign
......
......@@ -140,6 +140,7 @@ function display_mep(contact) {
};
function update_mep(element) {
var lang = '{{@PARAMS.lang}}';
var contact = JSON.parse($(element).attr('data-json'));
if (contact['photo'] !== '') {
$('#contact-image').attr('src', contact['photo']);
......@@ -147,7 +148,7 @@ function update_mep(element) {
$('#contact-full_name').html(contact['first_name'] + ' ' + contact['last_name']);
$('#contact-full_name-2').html(contact['first_name'] + ' ' + contact['last_name']
+ '<i class="material-icons right">close</i>');
$('#form-contact').attr('action', '/call/' + contact['id'] + '/#MEP');
$('#form-contact').attr('action', '/' + lang + '/call/' + contact['id'] + '/#MEP');
$('#contact_id').attr('value', contact['id']);
$('.groups').each(function() {
var group_type = $(this).attr('data-name');
......
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