зеркало из https://github.com/mozilla/pjs.git
Added options to delete operation, bug 6684
This commit is contained in:
Родитель
f3a412e7b7
Коммит
640665c397
|
@ -80,7 +80,7 @@ function RenameProfile(w)
|
|||
this.location.href = "resource:/res/profile/pm.xul";
|
||||
}
|
||||
|
||||
function DeleteProfile()
|
||||
function DeleteProfile(deleteFilesFlag)
|
||||
{
|
||||
if (!selected)
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ function DeleteProfile()
|
|||
|
||||
var name = selected.getAttribute("rowName");
|
||||
//dump("Delete '" + name + "'\n");
|
||||
profileCore.DeleteProfile(name);
|
||||
profileCore.DeleteProfile(name, deleteFilesFlag);
|
||||
//this.location.replace(this.location);
|
||||
//this.location.href = this.location;
|
||||
this.location.href = "resource:/res/profile/pm.xul";
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<html:center>
|
||||
Confirm delete?
|
||||
<html:br />
|
||||
<titledbutton value="Ok" class="push" onclick="opener.DeleteProfile();window.close();" />
|
||||
<titledbutton value="Delete Files" class="push" onclick="opener.DeleteProfile('true');window.close();" />
|
||||
<titledbutton value="Don't Delete Files" class="push" onclick="opener.DeleteProfile('false');window.close();" />
|
||||
<titledbutton value="Cancel" class="push" onclick="window.close();" />
|
||||
</html:center>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче