• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

When closing private chat...

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby chat27 » Thu Jun 14, 2007 5:10 pm

When closing a private chat window, v.1x beta asks if you're sure you want to leave the room. Now that's gonna freak out novice users :)
Inspiration exists, but it has to find you working. -Pablo Picasso
chat27
Member
 
Posts: 12
Joined: Thu Jun 14, 2007 4:50 pm
Location: Cape Town, south Africa
  • Website
  • ICQ
Top

Postby phpfreechat » Fri Jun 15, 2007 8:23 am

What do you suggest ? remove the alert ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby chat27 » Fri Jun 15, 2007 11:44 am

Well, since it asks you the same question whether you're closing a channel window or private chat window, maybe it could just ask "Are you sure you want to close this tab?", as I do believe a confirmation dialogue is needed for people like me that are forever clicking the wrong close button! lol
Last edited by chat27 on Fri Jun 15, 2007 11:45 am, edited 1 time in total.
Inspiration exists, but it has to find you working. -Pablo Picasso
chat27
Member
 
Posts: 12
Joined: Thu Jun 14, 2007 4:50 pm
Location: Cape Town, south Africa
  • Website
  • ICQ
Top

Postby phpfreechat » Fri Jun 15, 2007 3:10 pm

Your suggestion does make sense. I will change this label when I got time.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Sat Jun 30, 2007 9:43 pm

I made the change.
Here is the patch applied in 1044 revision
Code: Select all
kerphi@ketchup:~/pfc$ svn diff src/phpfreechat.class.php data/public/js/pfcgui.js
Index: src/phpfreechat.class.php
===================================================================
--- src/phpfreechat.class.php   (révision 1039)
+++ src/phpfreechat.class.php   (copie de travail)
@@ -411,6 +411,7 @@

     $labels_to_load =
       array( "Do you really want to leave this room ?", // _pfc
+             "Are you sure you want to close this tab ?", // _pfc
              "Hide nickname marker", // _pfc
              "Show nickname marker", // _pfc
              "Hide dates and hours", // _pfc
Index: data/public/js/pfcgui.js
===================================================================
--- data/public/js/pfcgui.js    (révision 1039)
+++ data/public/js/pfcgui.js    (copie de travail)
@@ -254,7 +254,9 @@
       a2.pfc_tabname = name;
       a2.pfc_tabtype = type;
       a2.onclick = function(){
-        var res = confirm(pfc.res.getLabel('Do you really want to leave this room ?'));
+        var msg = (type == 'pv' ? 'Are you sure you want to close this tab ?' :
+                                  'Do you really want to leave this room ?');
+        var res = confirm(pfc.res.getLabel(msg));
         if (res == true)
           pfc.sendRequest('/leave',this.pfc_tabid);
         return false;
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 26 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub