fix about dialog

This commit is contained in:
themighty1
2015-05-09 17:41:44 +03:00
parent 8133223ef6
commit 181355c8d0
2 changed files with 5 additions and 3 deletions

View File

@@ -35,8 +35,10 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
</html:hbox>
<script type="text/javascript;version=1.8">
function openT(url){
gBrowser.addTab(url);
gBrowser.selectedTab = t;
var gBrowser = window.arguments[0];
var t = gBrowser.addTab(url);
gBrowser.selectedTab = t;
window.close();
}
</script>
</dialog>

View File

@@ -368,7 +368,7 @@ function savePGSGFile(existing_path, name){
function showAboutInfo(){
window.openDialog("chrome://pagesigner/content/firefox/about.xul","","chrome, dialog, modal").focus();
window.openDialog("chrome://pagesigner/content/firefox/about.xul","","chrome, dialog, modal", gBrowser).focus();
}