fixed issue 178

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 8b8fbde300
commit 143febc5a4
  1. 7
      resources/library/applications/Navigateur Web.wgt/index.html

@ -202,7 +202,6 @@
}); });
function checkcontent(){ function checkcontent(){
if(window.sankore){ if(window.sankore){
window.sankore.setPreference("url", $("#textbox").val()); window.sankore.setPreference("url", $("#textbox").val());
window.sankore.setPreference("browserHistory", references.toString()); window.sankore.setPreference("browserHistory", references.toString());
@ -215,7 +214,6 @@
function checkLoading(){ function checkLoading(){
if(loadingState){ if(loadingState){
clearTimeout(resizer); clearTimeout(resizer);
resizerIndex = 0; resizerIndex = 0;
$("#web-content") $("#web-content")
@ -227,9 +225,10 @@
}; };
if(resizerIndex > 80){ if(resizerIndex > 80){
resizerIndex = 0; resizerIndex = 0;
console.log("error on loading page");
$("#back-button").trigger("click"); $("#back-button").trigger("click");
//alert(sankoreLang[lang].alert); $("#textbox").val($("#textbox").val().replace("http://", ""));
$("#textbox").val("http://www.google.com/search?q=" + $("#textbox").val().replace("http://", "")); $("#textbox").val("http://www.metacrawler.com/search/web?&q=" + $("#textbox").val().replace("http://", "")+"&ql=");
$("#search-button").trigger("click"); $("#search-button").trigger("click");
}else{ }else{
resizer = setTimeout(function(){checkLoading()}, 100); resizer = setTimeout(function(){checkLoading()}, 100);

Loading…
Cancel
Save