mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix contact click bug
This commit is contained in:
+30
-1
@@ -361,6 +361,35 @@
|
|||||||
showAddContact();
|
showAddContact();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.phone-icon').click(function(event) {
|
||||||
|
|
||||||
|
let id = $(this).attr('id');
|
||||||
|
|
||||||
|
switch(id) {
|
||||||
|
|
||||||
|
case 'phone-icon-rep' : {
|
||||||
|
showRepertoire();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'phone-icon-msg' : {
|
||||||
|
showMessages();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
default : {
|
||||||
|
|
||||||
|
let number = $(this).data('number');
|
||||||
|
let name = $(this).data('name');
|
||||||
|
|
||||||
|
showNewMessage(number, name);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
window.onData = function(data){
|
window.onData = function(data){
|
||||||
|
|
||||||
if(data.scroll === true){
|
if(data.scroll === true){
|
||||||
@@ -395,7 +424,7 @@
|
|||||||
|
|
||||||
if(data.addSpecialContact === true){
|
if(data.addSpecialContact === true){
|
||||||
addSpecialContact(data.name, data.number, data.base64Icon);
|
addSpecialContact(data.name, data.number, data.base64Icon);
|
||||||
renderSpecialContacts()
|
renderSpecialContacts();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data.move && isPhoneShowed){
|
if(data.move && isPhoneShowed){
|
||||||
|
|||||||
Reference in New Issue
Block a user