зеркало из https://github.com/mozilla/pjs.git
This causes the last page of create profile wizard called from profile manager to return to profile manager
This commit is contained in:
Родитель
1ba85a5766
Коммит
1a82c748c8
|
@ -0,0 +1,59 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<?xml-stylesheet href="common.css" type="text/css"?>
|
||||||
|
|
||||||
|
<!DOCTYPE window>
|
||||||
|
|
||||||
|
|
||||||
|
<window
|
||||||
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||||
|
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
|
||||||
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
|
|
||||||
|
|
||||||
|
<html:script>
|
||||||
|
var count = parent.count;
|
||||||
|
|
||||||
|
pages = new Object();
|
||||||
|
pages[0] = "resource:/res/profile/content1.xul";
|
||||||
|
pages[1] = "resource:/res/profile/content2.xul";
|
||||||
|
pages[2] = "resource:/res/profile/content3.xul";
|
||||||
|
pages[3] = "resource:/res/profile/contentManager4.xul";
|
||||||
|
|
||||||
|
function BrowserLoadURL(func)
|
||||||
|
{
|
||||||
|
if (func == "Prev") {
|
||||||
|
if (count > 0) {
|
||||||
|
count = count - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
parent.frames[0].commit();
|
||||||
|
dump("*****************************count: "+count+"\n");
|
||||||
|
parent.frames[0].location.replace( pages[count] );
|
||||||
|
parent.count = count;
|
||||||
|
parent.frames[1].location.replace("resource:/res/profile/navigationManagerStart.xul");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function SetValue(name, value)
|
||||||
|
{
|
||||||
|
dump("Set Value");
|
||||||
|
dump("name: "+name+"\n");
|
||||||
|
dump("value: "+value+"\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ExitWizard()
|
||||||
|
{
|
||||||
|
parent.frames[0].commit();
|
||||||
|
parent.Finish();
|
||||||
|
parent.location.replace("resource:/res/profile/profileManager.html");
|
||||||
|
}
|
||||||
|
</html:script>
|
||||||
|
|
||||||
|
|
||||||
|
<html:center>
|
||||||
|
<html:button onclick="BrowserLoadURL('Prev');"> Prev </html:button>
|
||||||
|
<html:button onclick="ExitWizard();"> Finish </html:button>
|
||||||
|
</html:center>
|
||||||
|
|
||||||
|
</window>
|
Загрузка…
Ссылка в новой задаче