facebook

Temporary fix to multiples alerts

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #337371 Reply

    Yann
    Member

    Hello,
    if like me you have a multiples alerts , Here is a solution

    function alerter(message) 
       {    
         
         var TimeMillisecondsClick = new Date(); 
    
      if(TimeMillisecondsClick.getTime() > TimeMilliseconds.getTime() + 1000 ) 
      { 
            navigator.notification.vibrate(2500);
            navigator.notification.alert(
            message,  // message
            donothing,         // callback
            'Erreur',            // title
            'Fermer'                  // buttonName
            );
            //alert(message);
              TimeMilliseconds = new Date(); 
                 
      } 
    
        
    }
Viewing 1 post (of 1 total)
Reply To: Temporary fix to multiples alerts

You must be logged in to post in the forum log in