|
[
Permalink
| « Hide
]
Espen Wang Andreassen added a comment - 15/Jan/07 01:05 PM
Completely broken in IE 7.0 (5730.11) also.
I am using table-data macro inside a live template. One of the table columns has a list-data macro that has a required=true and user-options parameters
When you add a row for the first time, fill up the said table column with the user from the selection list and save it, you will get an error saying the value (ie the user name) is required. When you go back and save the page again, it will accept the addition. In addition, your entries on the other fields on that row will also be lost. Overall I think the table-data macro is a bit unstable. But it such a very nice feature I really want to make it work. Hope you can help. Thanks. Mel {hidden-data}
{note:title=Vendor Company Notes}
* TYPE: Live template
* USED BY: Vendor Company Page
{note}
{hidden-data}
h1. Notes
{section}
{column:width=80%}
{table-data:Vendor Notes}
|| Contributor/Owner || Item || Type || Date || Remarks ||
| {list-data:Vendor Note Owner|required=true}{user-options}{list-data} | {text-data:Vendor Note Item|width=300px}{text-data} | {list-data:Vendor Note Type|type=check}{list-option}(x){list-option}{list-option}:){list-option}{list-option}(/){list-option}{list-option}(i){list-option}{list-option}(on){list-option}{list-data} | {date-data:Vendor Note Date|format=dd-MMMM-yyyy|minYear=2005} | {text-data:Vendor Note Remarks|type=area|width=600px|height=5em}{text-data} |
{table-data}
{column}
{column:width=20%}
{panel:title=Type|borderStyle=none}
| Task, Not Started | (x) |
| Task, On Going | :) |
| Task, Completed | (/) |
| Information | (i) |
| Idea | (on) |
{panel}
{column}
{section}
Another problem with table-data: When I add a line on the table put a zero value in any of the column containing a number-data macro and then save the page. If I then go back and edit the page, the number column with 0 value are not available for editing. Just to add to what I posted earlier The scenario I describe is such that number-data defaults to 0 to ensure that there is a value to the field. However when you save it and go back to edit it, the field becomes uneditable I tried using the required=true option and same thing, it wouldnt accept the default 0 value saying "null" is not allowed. Worse is I tried entering a number greater than zero and it still says the field is null and ask you to enter a number This issue is biting us somewhat hard. Any idea how long it would take to fix if we were to come up with some funds?
Honestly, it's hard to estimate. My gut feeling is that we will have to rewrite/replace the library we're currently using to do the AJAX table manipulation, since it seems to be quite broken in IE. Which is not necessarily a bad thing - Atlassian has switched to JQuery for 2.8, which is one of the options, so it might be simplest to go down that route. Keeps everything on the same page.
That being the case, just to fix the table issue is probably around two weeks. But I would want to do a more thorough review before making a concrete quote - it's been a while since I had time to work on that issue. If you can get some funds arranged it will definitely fast-track a resolution. If you'd like to go down that route, email atlassian@customware.net |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||