ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66428
|
Wed Jul 1 17:00:30 2009 |
| Richard Stamper | r.stamper@rl.ac.uk | Bug report | Windows | 2.7.6-2227 | Checks on datetime seconds field generate warning in IE7 | When adding a log entry containing a datetime field using the IE7 browser a Javascript warning is displayed - see the attachment. This is due to a change in the naming of the "seconds" field of a datetime entry (made in version 2143) not being propagated to the code that generates the Javascript that checks the supplied values.
Suggested patch follows.
Change "s%d" to "c%d" in lines 9675 and 9678.
Showing lines 9675-9680 below, change from:
rsprintf(" if (document.form1.s%d.value == \"\") {\n", i);
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
rsprintf(" alert(\"%s\");\n", str);
rsprintf(" document.form1.s%d.focus();\n", i);
rsprintf(" return false;\n");
rsprintf(" }\n");
to:
rsprintf(" if (document.form1.c%d.value == \"\") {\n", i);
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
rsprintf(" alert(\"%s\");\n", str);
rsprintf(" document.form1.c%d.focus();\n", i);
rsprintf(" return false;\n");
rsprintf(" }\n");
Regards,
Richard Stamper |
Attachment 1: Javascript_warning.jpg
|
|
66429
|
Thu Jul 2 08:36:57 2009 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Windows | 2.7.6-2227 | Re: Checks on datetime seconds field generate warning in IE7 |
Richard Stamper wrote: |
When adding a log entry containing a datetime field using the IE7 browser a Javascript warning is displayed - see the attachment. This is due to a change in the naming of the "seconds" field of a datetime entry (made in version 2143) not being propagated to the code that generates the Javascript that checks the supplied values.
Suggested patch follows.
Change "s%d" to "c%d" in lines 9675 and 9678.
Showing lines 9675-9680 below, change from:
rsprintf(" if (document.form1.s%d.value == \"\") {\n", i);
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
rsprintf(" alert(\"%s\");\n", str);
rsprintf(" document.form1.s%d.focus();\n", i);
rsprintf(" return false;\n");
rsprintf(" }\n");
to:
rsprintf(" if (document.form1.c%d.value == \"\") {\n", i);
sprintf(str, loc("Please enter second for attribute '%s'"), attr_list[i]);
rsprintf(" alert(\"%s\");\n", str);
rsprintf(" document.form1.c%d.focus();\n", i);
rsprintf(" return false;\n");
rsprintf(" }\n");
Regards,
Richard Stamper
|
This is absolutely correct, even the right fix. I put that into the distribution. Thanks a lot. |
66430
|
Thu Jul 2 09:39:40 2009 |
| David Pilgram | David.Pilgram@epost.org.uk | Question | Linux | 2.7.6-2226 | Cancelling an Roption selection in Edit. | Hi Stefan,
I don't know if anyone else would be interested or need this...
If you have an Roption, and it is not required (maybe...) or have a preset attribute, it is possible to make an
entry and have replies without any of the attributes in that Roption being selected.
However, once an attribute in that Roption has been selected, it is not possible to go back (editing) to the
condition before one was selected on that entry (so far as I can tell).
Is a way of cancelling all the possible attributes in an Roption practical? Would others want it? It is
possible with options, as there is a "please select" which can be used to cancel whichever attribute in the
option that has been selected.
Regards, David |
66431
|
Thu Jul 2 10:04:13 2009 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.7.6-2226 | Re: Cancelling an Roption selection in Edit. | > Hi Stefan,
>
> I don't know if anyone else would be interested or need this...
>
> If you have an Roption, and it is not required (maybe...) or have a preset attribute, it is possible to make an
> entry and have replies without any of the attributes in that Roption being selected.
>
> However, once an attribute in that Roption has been selected, it is not possible to go back (editing) to the
> condition before one was selected on that entry (so far as I can tell).
>
> Is a way of cancelling all the possible attributes in an Roption practical? Would others want it? It is
> possible with options, as there is a "please select" which can be used to cancel whichever attribute in the
> option that has been selected.
>
> Regards, David
The easiest to achieve this is to define another option. Assume you have the three options
One, Two, Three
and you want to "unselect" them. So just add a fourth option like
Unspecified, One, Two, Three
so if you do not want any of the "One, Two, Three", just click on "Unspecified" and you get what you want. |
66432
|
Thu Jul 2 11:33:48 2009 |
| David Pilgram | David.Pilgram@epost.org.uk | Question | Linux | 2.7.6-2226 | Re: Cancelling an Roption selection in Edit. | > > Hi Stefan,
> >
> > I don't know if anyone else would be interested or need this...
> >
> > If you have an Roption, and it is not required (maybe...) or have a preset attribute, it is possible to make an
> > entry and have replies without any of the attributes in that Roption being selected.
> >
> > However, once an attribute in that Roption has been selected, it is not possible to go back (editing) to the
> > condition before one was selected on that entry (so far as I can tell).
> >
> > Is a way of cancelling all the possible attributes in an Roption practical? Would others want it? It is
> > possible with options, as there is a "please select" which can be used to cancel whichever attribute in the
> > option that has been selected.
> >
> > Regards, David
>
> The easiest to achieve this is to define another option. Assume you have the three options
>
> One, Two, Three
>
> and you want to "unselect" them. So just add a fourth option like
>
> Unspecified, One, Two, Three
>
> so if you do not want any of the "One, Two, Three", just click on "Unspecified" and you get what you want.
This is sort of what I do now, I just wondered if there was a way of clearing that would leave the field completely
blank in the YYMMDDa.log file.
Thanks. |
66388
|
Wed Jun 10 13:56:09 2009 |
| David Pilgram | David.Pilgram@epost.org.uk | Other | Linux | 2.7.6-2211 | Move to: elog crashes with large no of entries being moved. | Hi Stefan,
I've been slowly moving threads, and twice now so far (and reproducably) had elog crash.
In each case, it is trying to move a thread with more than 24 entries; it copies the first 24 entries, then
crashes with "Segmentation Fault". It does not erase the lock file /var/run/elog.pid
I have got around this by manually copying the entries beyond no 24, then deleting the thread entry by entry.
I am aware that I have an old and limited machine (586, 256MB RAM, running Slack 10), and at first I was
"content" to write it off as that; but when it crashed for the second time at exactly the same entry (the
twenty-forth) even though the size of the entries would have been significantly different, I wondered if there
was some factor within elog that could affect this.
I've not tried it with Copy to:, but imagine it will also be affected as the only difference with this and Move
to: is the deletion of the thread after all the entries had been copied. |
66389
|
Wed Jun 10 14:09:04 2009 |
| Stefan Ritt | stefan.ritt@psi.ch | Other | Linux | 2.7.6-2211 | Re: Move to: elog crashes with large no of entries being moved. | > Hi Stefan,
>
> I've been slowly moving threads, and twice now so far (and reproducably) had elog crash.
>
> In each case, it is trying to move a thread with more than 24 entries; it copies the first 24 entries, then
> crashes with "Segmentation Fault". It does not erase the lock file /var/run/elog.pid
>
> I have got around this by manually copying the entries beyond no 24, then deleting the thread entry by entry.
>
> I am aware that I have an old and limited machine (586, 256MB RAM, running Slack 10), and at first I was
> "content" to write it off as that; but when it crashed for the second time at exactly the same entry (the
> twenty-forth) even though the size of the entries would have been significantly different, I wondered if there
> was some factor within elog that could affect this.
>
> I've not tried it with Copy to:, but imagine it will also be affected as the only difference with this and Move
> to: is the deletion of the thread after all the entries had been copied.
This rings a bell: it's probably related to some internal stack overflow, since the entries are copied
recursively. I have an idea on how to fix that, but I need time for that. |
66390
|
Wed Jun 10 15:31:13 2009 |
| David Pilgram | David.Pilgram@epost.org.uk | Other | Linux | 2.7.6-2211 | Re: Move to: elog crashes with large no of entries being moved. | > > Hi Stefan,
> >
> > I've been slowly moving threads, and twice now so far (and reproducably) had elog crash.
> >
> > In each case, it is trying to move a thread with more than 24 entries; it copies the first 24 entries, then
> > crashes with "Segmentation Fault". It does not erase the lock file /var/run/elog.pid
> >
> > I have got around this by manually copying the entries beyond no 24, then deleting the thread entry by entry.
> >
> > I am aware that I have an old and limited machine (586, 256MB RAM, running Slack 10), and at first I was
> > "content" to write it off as that; but when it crashed for the second time at exactly the same entry (the
> > twenty-forth) even though the size of the entries would have been significantly different, I wondered if there
> > was some factor within elog that could affect this.
> >
> > I've not tried it with Copy to:, but imagine it will also be affected as the only difference with this and Move
> > to: is the deletion of the thread after all the entries had been copied.
>
> This rings a bell: it's probably related to some internal stack overflow, since the entries are copied
> recursively. I have an idea on how to fix that, but I need time for that.
Thanks Stefan, I'll be keeping an eye out on any annoucement about this one! |
|