[pmwiki-users] Javascript to require "Summary" for changes
Petko Yotov
5ko at 5ko.fr
Sat Apr 25 07:55:03 CDT 2009
On Saturday 25 April 2009 11:09:08 Peter Bowers wrote:
> > Hi. I updated the NotsavedWarning recipe to do just this. See
> > http://www.pmwiki.org/wiki/Cookbook/NotsavedWarning
>
> I would love to see this functionality implemented for entering the Author
> as well...
Curiously, after half a day using the "prompt summary" feature, I am utterly
annoyed by it, so I disabled it on my own wikis. I could, however, use a
reminder for the Author field, so I added one.
> And perhaps a separate option to "require summary" and "require author" in
> addition to just being prompted but being allowed to enter blank?
I wouldn't want to force it : users will be quickly annoyed, and they will end
up adding random characters. Also, not everybody has JavaScript enabled so we
can't rely on it for "required" form values.
> JS is so much more user-friendly than the other existing solutions...
More than one "prompt" or "alert" boxes are not good: a thickbox could be.
http://www.useit.com/alertbox/application-design.html
The article calls it "lightbox", but it is technically a "thickbox".
Unfortunately, a thickbox requires many more lines of code.
Thanks,
Petko
More information about the pmwiki-users
mailing list