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

[release]Froze closing TAB

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
1 post • Page 1 of 1

Postby Waxime » Sat Sep 09, 2006 3:37 pm

This option remove the possibilitly to close a TAB, but without removing the possibilitly to closing private msg

in the file pfgui.js
find the function createTab
add a new parameter: "createTab: function(name, tabid, type, privee)"
after find this line
--------------------------------
var img = document.createElement('img');
img.setAttribute('src', pfc.res.getFileUrl('images/tab_remove.gif'));
a2.appendChild(img);
--------------------------------
and change it by
-------------------------------
if(privee=="true"){
var img = document.createElement('img');
img.setAttribute('src', pfc.res.getFileUrl('images/tab_remove.gif'));
a2.appendChild(img);
}
-------------------------------

for finish the modification, go in the file pfclient.js and find all createTab

line 174: this.gui.createTab(name, tabid, "ch","false");
line 193: this.gui.createTab(name, tabid, "ch","false");
line 234: this.gui.createTab(name, tabid, "pv","true");
line 255: this.gui.createTab(name, tabid, "pv","true");
Waxime
New member
 
Posts: 9
Joined: Mon Aug 21, 2006 5:05 am
  • Website
Top

Topic locked
1 post • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 7 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