How I can Edit dialog!

Post modules, themes or any other code you want to share with the community.

Moderator: Developers

niny
Posts: 2
Joined: Thu Aug 27, 2009 8:28 am

How I can Edit dialog!

Postby niny » Thu Aug 27, 2009 8:50 am

Hi.
I have Some Problem about Group-Office 3.2.20 to ask
I need to edit interface by " Ext Ajax Framework" ,Such as remove "lost password" button in login dialog box and edit menu list in help menu.
I try to edit in "groupoffice/javascript/windows/LoginDialog.js" and in "local" ,but not work it don't have effect or change.
I think about "It wrong way to edit",But i don't know what's rigth way.


thank
SirDemonCZE
Posts: 134
Joined: Thu Jul 26, 2007 6:30 am
Contact:

Re: How I can Edit dialog!

Postby SirDemonCZE » Thu Aug 27, 2009 10:24 am

Remove lost password: U must remove this rows from javascript/windows/LoginDialog.js, clear local cache folder and minifying scripts :

Code: Select all

{
text: GO.lang.lostPassword,
handler: function(){
// Prompt for user data and process the result using a callback:
Ext.Msg.prompt(GO.lang.lostPassword, GO.lang.lostPasswordText, function(btn, text){
if (btn == 'ok'){
Ext.Ajax.request({
url:'action.php',
params:{
task:'lost_password',
email:text
},
callback: function(options, success, response)
{
if(!success)
{
Ext.MessageBox.alert(GO.lang['strError'], GO.lang['strRequestError']);
}else
{
var responseParams = Ext.decode(response.responseText);
if(!responseParams.success)
{
Ext.MessageBox.alert(GO.lang['strError'], responseParams.feedback);
}else
{
Ext.MessageBox.alert(GO.lang['strSuccess'], responseParams.feedback);
}
}
}
});
}
})
},
scope:this
},
If u edit *.js files, u must use minify file for recompiling scripts.
mschering
Site Admin
Site Admin
Posts: 8193
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: How I can Edit dialog!

Postby mschering » Thu Aug 27, 2009 11:12 am

Please read the "Creating modules" section at the wiki for more info about GO development.

@SirDemon: The lost password procedure changed by the way so it should be a problem for users anymore.
Best regards,

Merijn Schering
Intermesh
niny
Posts: 2
Joined: Thu Aug 27, 2009 8:28 am

Re: How I can Edit dialog!

Postby niny » Wed Sep 02, 2009 3:16 am

thank you for all reply

Who is online

Users browsing this forum: No registered users and 1 guest

cron