I've just spent more time than it was worth trying to work out why EtoGal (in admin mode) had suddenly stopped updating the description field when saving changes. (I was looking for coding logic errors since this was a heavily modified version)
It turned out that as long as you actually type something into the field the update gets applied; if you paste something into an empty description, it doesn't, because the browser doesn't report back that the data is modified. Just typing a space and deleting it again suffices.
Problem occurs on Windows XP with Firefox 2 and IE 6 (the only browsers installed on this machine).
If anyone can suggest a different mechanism for detecting the change in the form rather than that used in EtoGal, I'll look into it. (I paste using CTRL+V rather than using the right hand mouse button menu)
EtoGal not updating descriptions in table
Started by mikef, Dec 23 2007 06:34 PM
2 replies to this topic
#1
Posted 23 December 2007 - 06:34 PM
#2
Posted 23 December 2007 - 09:08 PM
Couldn't you just change the Javascript test from onKeyDown to onChange ?
eg: change line 405
to
eg: change line 405
if ($descvalid==1) $returnstring .= "<td>" . $strings['description'] . ":<br/><textarea name=\"descr$i\" rows=\"5\" cols=\"40\" onKeyDown=\"document.editform.modified$i.value='yes'\">" . stripslashes($pic['descr']) . "</textarea></td>";
to
if ($descvalid==1) $returnstring .= "<td>" . $strings['description'] . ":<br/><textarea name=\"descr$i\" rows=\"5\" cols=\"40\" onchange=\"document.editform.modified$i.value='yes'\">" . stripslashes($pic['descr']) . "</textarea></td>";
#3
Posted 24 December 2007 - 04:17 PM
Thanks Cris - I'll give this a try later, but you are probably right! (Writing HTML forms code isn't one of my strong points!)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











