Hi all, I need increase the default popup's windows size, any ideas? I've been reading other post and I find this:
http://www.sugarcrm.com/forums/showt...+popup+windows
but I dont understand very well where I have to do this changes. Thanks!
Hi all, I need increase the default popup's windows size, any ideas? I've been reading other post and I find this:
http://www.sugarcrm.com/forums/showt...+popup+windows
but I dont understand very well where I have to do this changes. Thanks!
Sorry, I'm using sugar CE. 5.0.2h
Please! any ideas??
this is handled in the button you have to press to get the popup. So look at the sugarbutton for e.g. subpanel buttons or the relate field definition for the relate button. Therein the size is specified and agreed to small.
Changing is a modification but a small and very controllable one. Done many times.
christian.
Hi christian thank you for your response. I've been modifying the JS files related to popups at this localization but I don't find any result:
\include\javascript\popup_parent_helper.js
modifying this param:
windowFeatures='width=300'+',height=300
I believed it would work but no. I'm in a erroneous way. What do you think? Thanks!
You need to either modify the script include/SugarFields/Fields/Relate/EditView.tpl to set other width and heigh or clone the whole include/SugarFields/Fields/Relate/ and modify the copy. If you implement this second choice so remember to add the attribute 'type' => 'new_relate' on field defs at editviewdefs.php
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi andopes, thank you for your help. Your solution works fine with the the fields "related" but the popup windows size of subpanels is the same as before. Where's the localization of this files who I should modify? Thank you again andopes.![]()
You would want to look in
include/generic/SugarWidgets/SugarWidgetSubPanelTopSelectButton.php
And edit at the bottom where it says
change those numbers. You may have to edit other similarly named files, but it worked for me.Code:. " onclick='open_popup(\"$module_name\",600,400,\"$initial_filter\",false,false,$json_encoded_php_array);' />\n";
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks