PDA

View Full Version : Dialogs look strange.



catalina
12 May 2009, 3:55 AM
Strange looking dialogs:

http://bugs.regweb.no/dialog_01.jpg


CODE:
function InvoiceSearch(){

Ext.Msg.prompt('Fakturasøk', 'Fakturanummer:', function(btn, text){
if (text != ""){
test = Ext.Ajax.request({
url : 'content/invoicestatus/invoicestatus.php' ,
params : {
mode : 'getInvoiceSearchID',
id : text
},
method: 'POST',
success: function ( result, request ) {
v = Ext.decode(result.responseText);
switch(v.placement){
case 'active':
ShowSentInvoiceDetails(null, v.invoice_id);
break;
case 'archive':
ShowArchivedInvoiceDetails(null, v.invoice_id);
break;
default:
Ext.MessageBox.alert('Feil', v.info);
}
},
failure: function ( result, request) {
v = Ext.decode(result.responseText);
Ext.MessageBox(v.info);
}
});
}
});

******************************************
And this:
http://bugs.regweb.no/dialog_02.jpg

Code:

if (!win) {
win = new Ext.Window({
id: 'listGender',
title: 'Medlemstype',
iconCls: 'medlemstype',
width: 700,
height: 400,
minWidth: 700,
minHeight: 400,
layout: 'fit',
plain:true,
bodyStyle:'padding:5px;',
buttonAlign:'center',
items: gridPanel,
buttons: [
new Ext.Toolbar.TextItem('<span style="font-size:11px;"><b>INFORMASJON</b><br>Sett opp medlemstypene som dere skal bruke her. Medlemstypene bestemmer kontingentsatsene. Medlemstypen som settes p&aring; medlemmet i medlemseditoren bestemmer hvilket bel&oslash;p det vil st&aring; p&aring; fakturaen medlemmet mottar. Skal medlemstypen vises for Nettinnmeldinger avsjekker man for &quot;Nettinnmld.&quot; Skal medlemstypen vises for lokalforeninger s&aring; avsjekker man for &quot;Forening&quot;.</span>')
]
});
}

--------------

Can you please give me you comments on this issue? Or do you see whats wrong.
Any help would be much appreciate :)

evant
12 May 2009, 3:58 AM
Fairly sure this is fixed in SVN, grab the latest.

catalina
12 May 2009, 11:02 AM
I can see that the last SVN is Revision 3942: /trunk/src.

But I need a rebuilt ext-all.js from the trunk file to check it out.

Can you attach it?

tryanDLS
12 May 2009, 11:07 AM
I believe that file would be too large to attach. You can rebuild yourself using JSBuilder. http://extjs.com/learn/Tutorial:Building_Ext_From_Source

catalina
12 May 2009, 11:42 AM
hmmm. Much work just to test if this bug is fixed in SVN.
Anybody have a place I can download it? ;)

evant
12 May 2009, 5:05 PM
It's quite simple to build from SVN:

http://extjs.com/forum/showthread.php?t=15191

catalina
13 May 2009, 1:37 AM
Hmm. Never done it. Am I on the right track if I do:
1. I have the "/extjs" folder (ext-3.0-rc1.1) is located there.
2. Download all the files from "/trunk/src/" and add them to a folder eg. /svn
3. Run: java -jar builder.jar -s "/svn" -o "/extjs"

Animal
13 May 2009, 1:43 AM
On Windows it's just a click in a GUI tool.

catalina
13 May 2009, 4:15 AM
Was easy as you said!

Thanks!!! :)

catalina
13 May 2009, 5:45 AM
But it looks like this issue is not fixed in SVN. Any suggestions?

Animal
13 May 2009, 6:06 AM
You regenerated the js AND the resources, and then copied them from their destination directories into your app?

catalina
14 May 2009, 4:44 AM
To finish up this case:
1. The first dialog (search) was fixed in SVN (Thanks Evant!)
2. All the other dialogs is fixed with buttonAlign:'left' and linebreaks in html code.
--
Tips regarding SVN (I had never done this before). This is how I did it:
1. Download: TortoiseSVN here: http://tortoisesvn.net/downloads
2. Install it (reboot is required)
3. Download JS?BUILDER here: http://code.google.com/p/js?builder/
4. Install it.
5. Create a folder, ex: extjs_from_trunk a) right click on the folder, and select: TortoiseSVN?> Repo?browser b) Add path: http://code.extjs.com/svn/ext/trunk
c) add SVN username and password d) Right?click on trunk. Select “Export”
Go to the folder: C:\extjs_from_trunk\src
Doubleclick on the ext.jsb file - > Build in meny. Do the same with the \resources\resources.jsb

* You can now copy this copy over to your \extjs folder

catalina
14 May 2009, 4:46 AM
Case closed!

catalina
14 May 2009, 4:48 AM
Thanks for all help!

catalina
14 May 2009, 4:52 AM
:)