mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
fix contact click bug
This commit is contained in:
+30
-1
@@ -361,6 +361,35 @@
|
||||
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){
|
||||
|
||||
if(data.scroll === true){
|
||||
@@ -395,7 +424,7 @@
|
||||
|
||||
if(data.addSpecialContact === true){
|
||||
addSpecialContact(data.name, data.number, data.base64Icon);
|
||||
renderSpecialContacts()
|
||||
renderSpecialContacts();
|
||||
}
|
||||
|
||||
if(data.move && isPhoneShowed){
|
||||
|
||||
Reference in New Issue
Block a user