diff --git a/resources/library/interactive/WebBrowser.wgt/index.html b/resources/library/interactive/WebBrowser.wgt/index.html index 89da9709..5320f4c8 100644 --- a/resources/library/interactive/WebBrowser.wgt/index.html +++ b/resources/library/interactive/WebBrowser.wgt/index.html @@ -8,7 +8,6 @@ Web Browser - @@ -43,6 +42,9 @@ if(window.sankore){ url = window.sankore.preference("url", ""); + if(sankore.preference("browserHistory", "")) + references = sankore.preference("browserHistory", "").split(","); + currentHistory = parseInt(sankore.preference("browserIndex", "0")); }else{ url = ""; }; @@ -141,6 +143,8 @@ if(window.sankore){ window.sankore.setPreference("url", $("#textbox").val()); + window.sankore.setPreference("browserHistory", references.toString()); + window.sankore.setPreference("browserIndex", currentHistory); }; $("#embeded-content").hide(); @@ -152,6 +156,9 @@ clearTimeout(resizer); resizerIndex = 0; + $("#web-content") + .attr("width", globalWidth - 25) + .attr("height", globalHeight - 90); $("#web-content").show(); return false; };