From 143febc5a48d79030562244efaea99736396a382 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Tue, 7 Aug 2012 16:44:04 +0200 Subject: [PATCH] fixed issue 178 --- .../library/applications/Navigateur Web.wgt/index.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/library/applications/Navigateur Web.wgt/index.html b/resources/library/applications/Navigateur Web.wgt/index.html index 2e1903ef..a1ca93a7 100644 --- a/resources/library/applications/Navigateur Web.wgt/index.html +++ b/resources/library/applications/Navigateur Web.wgt/index.html @@ -201,8 +201,7 @@ .attr("height", globalHeight - 120); }); - function checkcontent(){ - + function checkcontent(){ if(window.sankore){ window.sankore.setPreference("url", $("#textbox").val()); window.sankore.setPreference("browserHistory", references.toString()); @@ -215,7 +214,6 @@ function checkLoading(){ if(loadingState){ - clearTimeout(resizer); resizerIndex = 0; $("#web-content") @@ -227,9 +225,10 @@ }; if(resizerIndex > 80){ resizerIndex = 0; + console.log("error on loading page"); $("#back-button").trigger("click"); - //alert(sankoreLang[lang].alert); - $("#textbox").val("http://www.google.com/search?q=" + $("#textbox").val().replace("http://", "")); + $("#textbox").val($("#textbox").val().replace("http://", "")); + $("#textbox").val("http://www.metacrawler.com/search/web?&q=" + $("#textbox").val().replace("http://", "")+"&ql="); $("#search-button").trigger("click"); }else{ resizer = setTimeout(function(){checkLoading()}, 100);