Advertisement
eerrtt

Untitled

Jan 27th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(packet.data.docId == null) {
  2.                 if(is_employee  && packet.data.iteration == 1){
  3.                     $('#consult-request-modal').modal('show');
  4.                     playSound();
  5.                     consultationLog('".ConsultationLog::REQUEST_RECEIVED."', packet.data.hash, '');
  6.                 }
  7.                 else if(!is_employee && packet.data.iteration > 1){
  8.                     $('#consult-request-modal').modal('show');
  9.                     playSound();
  10.                     consultationLog('".ConsultationLog::REQUEST_RECEIVED."', packet.data.hash, '');
  11.                 }
  12.             }
  13.             //selected consultant
  14.             else if (packet.data.docId != null && packet.data.docId == user_id) {
  15.            
  16.                     $('#consult-request-modal').modal('show');
  17.                     playSound();
  18.                     consultationLog('".ConsultationLog::REQUEST_RECEIVED."', packet.data.hash, '');
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement