Hi,
Because we're using prompt in only one place, maybe would be better to replace it by standard confirm dialog. I don't like to include many js files for one small effect.
yes, using a js which only targets one problem should be avoided.
but to make all dialogs match roundcube's look and feel there are two solutions (I can think of):
don't use javascript for those kind of dialogs.. find another way to tell the user he has to do something (see last mail from Eduard Krieger). problem: this may affect the usability
use a jQuery plugin that can create multiple dialogs (not just one for prompts, another one for alerts and so on...) we could make that one look exactly like the rest of roundcube PLUS: this can be changed in the CSS (so it's still fully skinable if someone creates another theme) if the devs vote for this one we should decide which of the jQuery plugins to use (list of plugins posted earlier by Eduard Krieger)
I (as in "myself" :)) would prefer the second one.. the jQuery plugin I just like that someone can re-use it everywhere he wants to and the look and feel still stays the same. and from a developers point of view it's not too hard to integrate (at least as far as I can say)
Regards, Martin _______________________________________________ List info: http://lists.roundcube.net/dev/