You are not logged in.
Pages: 1
hi there,
i made a little patch for setting the default-dictionary for the spellchecker:
http://xinha.gogo.co.nz/cgi-bin/trac.cgi/ticket/51
now my question:
in spell-check-ui.js when setting the avaliable dictionaries i found this code:
for (var i = 0; i < dicts.length; ++i) {
var txt = dicts[i];
var option = document.createElement("option");
if (/^@(.*)$/.test(txt)) {
txt = RegExp.$1;
option.selected = true;
}
what is the if (/^@(.*)$/.test(txt)) { good for?
when do we get an @ bevore de dictionary?
why should this one be selected?
my patch changes this into:
if(txt == activeDictionary) {
option.selected = true;
}
and i don't know if this is allright
thanks
niko
Niko
Offline
what is the if (/^@(.*)$/.test(txt)) { good for?
when do we get an @ bevore de dictionary?
why should this one be selected?
I don't know on that one, I dont' think we have the spellchecker plugin author here.
I'll look at your patch tonight with a bit of luck.
James Sleeman
Offline
thanks
Niko
Offline
Pages: 1