i fixed some bugs in WerBrowser app

preferencesAboutTextFull
unknown 13 years ago
parent a9c60a233f
commit f45514dea8
  1. 9
      resources/library/interactive/WebBrowser.wgt/index.html

@ -8,7 +8,6 @@
<title>Web Browser</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<!--DEFAULT FR-->
</head>
<body>
@ -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;
};

Loading…
Cancel
Save