|
Hi! ;) Would be nice if we could change the width of the form field (we would need it much larger) "which assignment" in the "timesheet - day" plugin or even in all fields where the "assignment" can be choosen ... ;) Is there a simple way to do that? ... Tks Patrick |
|
its not about the amount of entries, its about the width of the created drop-down span. the span gets generated by javascript (onfocus="createDropDown($(this),300,400);) the value 400 (the height) gets the value from assignmentsCombo.iframe_width, but 300 is hardcoded somewhere else. we created a workaround, that works great for us: /commens/layout/smartCombo/partSmartCombo.js uncomment line 7:
append:
and we changed the values in "partWorklogDayWP.jsp" to
btw: in my humble opinion there is no need to hardcode the width of a field, that gets filled with content you have no idea of the string-length :-) greetings from vienna/austria bernhard mäser125 oh, and btw: the value "300" in the javascript is NOT the hardcoded value, its just the fallback :-)
(Feb 13 at 10:45)
Bernhard Mäser
|
|
There is not a centralized point on which you can change the lenght of that field. Every form is different and the design of the page does not always allow a larger filed. To enlarge the field of the portlet worklog day open the file partWorklogDaywp.jsp (TEAMWORK_ROOT/webapps/ROOT/applications/teamwork/portal/portlet/parts) and change this line: assignmentsCombo.maxLenght = 30; with a higher value for example: assignmentsCombo.maxLenght = 40; Remember to backup the file before doing this and that every time you will upgrade you instance the file will be replaced. So save it somewhere before upgrading. |
|
I'm sorry ... but this doesn't seem to work correctly ... as you can see in the screenshot - only the field is getting larger - the ajax dropdown isn't ??? |
|
HI Patrick, to enlarge the dropdown part you should add after this line: assignmentsCombo.maxRowToFetch=40; the following line: assignmentsCombo.iframe_width=400; Change that value according to your needs. |
