Little Fix up + Translation PL

Fixed up other app.js missing delete Contact, moved the phone slightly more to the right of the screen, Added Polish Translation.
This commit is contained in:
deviljin112
2018-07-23 17:17:25 +01:00
parent 840fa45927
commit ff62e87e0e
7 changed files with 647 additions and 4 deletions
+19 -2
View File
@@ -7,7 +7,10 @@
'<span class="sender">{{sender}}</span><br/><span class="phone-number">#{{phoneNumber}}</span>' +
'</div>' +
'</div>' +
'<div class="actions"><span class="new-msg newMsg-btn" data-contact-number="{{phoneNumberData}}" data-contact-name="{{senderData}}"></span></div>' +
'<div class="actions">' +
'<span class="del-contact" data-contact-number="{{phoneNumberData}}" data-contact-name="{{senderData}}">X</span>' +
'<span class="new-msg newMsg-btn" data-contact-number="{{phoneNumberData}}" data-contact-name="{{senderData}}"></span>' +
'</div>' +
'</div>'
;
@@ -119,6 +122,16 @@
}
$('#phone #repertoire .repertoire-list').html(contactHTML);
$('.contact .del-contact').click(function() {
let name = $(this).attr('data-contact-name');
let phoneNumber = $(this).attr('data-contact-number');
$.post('http://esx_phone/remove_contact', JSON.stringify({
contactName: name,
phoneNumber: phoneNumber
}))
});
$('.contact.online .new-msg').click(function() {
showNewMessage($(this).attr('data-contact-number'), $(this).attr('data-contact-name'));
@@ -383,7 +396,7 @@
});
$('#btn-head-new-message').click(function() {
showNewMessage('', 'Nouveau message');
showNewMessage('', 'New message');
});
$('#btn-head-new-contact').click(function() {
@@ -451,6 +464,10 @@
hideAddContact();
}
if(data.contactRemoved === true){
reloadPhone(data.phoneData);
}
if(data.addSpecialContact === true){
addSpecialContact(data.name, data.number, data.base64Icon);
}