Re: Add a link to system alert message

  •  03-23-2010, 11:24 PM

    Re: Add a link to system alert message

    Hi ArabellaS,
     
    Try this way
     
    1. Open file "CuteSoft_Client\CuteChat\Script\ChatUI.js"
     
    2. Find section below
     
    case "NEEDLOGIN":
       msghtml=TEXT("UI_CONNECTION_NEEDLOGIN");
       Desktop.Alert(null,TEXT("UI_CONNECTION_NEEDLOGIN"),TEXT("UI_ALERT"));
       break;
     
    3. Change to
     
    case "NEEDLOGIN":
       msghtml=TEXT("UI_CONNECTION_NEEDLOGIN");
       if(confirm("Login Now?")==true)
        {
           window.location.href="http://localhost:63643/CuteChat/";
        }
       break;
     
    4. Note
     
    "Login Now?" is the confirm message. http://localhost:63643/CuteChat/ is the login location in you site.
     
    Regards,
     
    Ken
View Complete Thread