Re: [Htmlvalidator-help] Fixed a bit bug
Brought to you by:
mgueury
From: Marc G. <mg...@sk...> - 2006-06-21 22:19:43
|
Thanks Tibor, I will include the fix in the next version. Marc Tibor Balogh wrote: > Dear Marc! > > I modified the loadHelp method of TidyValidate object. > Now the translated "no_help.html" file will be shown. > > loadHelp : function(src) > { > var url = [ > "chrome://tidy/content/help/"+oTidyUtil.defaultLanguage+"/"+src, > "chrome://tidy/content/help/en-US/"+src, > > "chrome://tidy/content/help/"+oTidyUtil.defaultLanguage+"/no_help.html", > "chrome://tidy/content/help/en-US/no_help.html" > ]; > > for (var i=0; i<url.length; ++i) > { > if (helpExists(url[i])) > { > this.xulExplainError.loadURI( url[i] ); > break; > } > } > > function helpExists(fileName){ > try { > var req = new XMLHttpRequest(); > req.open('GET', fileName, false); > req.send(null); > } > catch(ex){ > return false; > } > return true; > } > }, > > Regards, > Tibor, Balogh > > |