mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 19:48:18 +00:00
rename profile ui
This commit is contained in:
parent
cb3d0e3feb
commit
f40fd04409
83
profile/resources/renameProfile.html
Normal file
83
profile/resources/renameProfile.html
Normal file
@ -0,0 +1,83 @@
|
||||
<html>
|
||||
|
||||
<script>
|
||||
var profileCore = parent.GetProfileCore();
|
||||
|
||||
var curProfileName = parent.GetProfileName();
|
||||
|
||||
function RenameProfile()
|
||||
{
|
||||
dump("************Inside RenameProfile\n");
|
||||
// Open a dialog and get new name
|
||||
var element = document.getElementById("NewProfileName");
|
||||
var newProfileName = element.value;
|
||||
|
||||
if (newProfileName != "") {
|
||||
profileCore.RenameProfile(curProfileName, newProfileName);
|
||||
|
||||
// Load this xul to see the updated profile list
|
||||
this.location.replace("resource:/res/profile/profileManager.html");
|
||||
}
|
||||
else {
|
||||
dump("************Please enter a new profile name first\n");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Rename Profile:
|
||||
</td>
|
||||
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td>
|
||||
<script> document.writeln(curProfileName); </script>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
New Name :
|
||||
</td>
|
||||
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td>
|
||||
<input type="text" id="NewProfileName" size="15"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
<input name=renButton type="button" value="Rename " onclick="RenameProfile();">
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user