зеркало из https://github.com/mozilla/pjs.git
Added new .xul and js files for bug #36249
This commit is contained in:
Родитель
8528565532
Коммит
4f8f0b5a2d
|
@ -0,0 +1,60 @@
|
|||
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Don Bragg <dbragg@netscape.com
|
||||
*/
|
||||
|
||||
var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
var param;
|
||||
|
||||
function OnLoad()
|
||||
{
|
||||
param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
|
||||
|
||||
// display the main text
|
||||
var messageText = param.GetString(0);
|
||||
var messageParent = document.getElementById("info.box");
|
||||
|
||||
// set the pressed button to cancel to handle the case where the close box is pressed
|
||||
param.SetInt(0, 3);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function OnRetry()
|
||||
{
|
||||
param.SetInt(0, 0 );
|
||||
window.close();
|
||||
}
|
||||
|
||||
function OnCreateNew()
|
||||
{
|
||||
param.SetInt(0, 1);
|
||||
window.close();
|
||||
}
|
||||
|
||||
function OnCancel()
|
||||
{
|
||||
param.SetInt(0, 2);
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- The contents of this file are subject to the Netscape Public
|
||||
License Version 1.1 (the "License"); you may not use this file
|
||||
except in compliance with the License. You may obtain a copy of
|
||||
the License at http://www.mozilla.org/NPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS
|
||||
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
|
||||
The Original Code is Mozilla Communicator client code.
|
||||
|
||||
The Initial Developer of the Original Code is Netscape
|
||||
Communications Corporation. Portions created by Netscape are
|
||||
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Don Bragg (dbragg@netscape.com)
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/profile/no_space.dtd">
|
||||
|
||||
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
orient="vertical"
|
||||
onload="OnLoad()"
|
||||
style="min-height: 8em; user-focus: ignore;"
|
||||
class="dialog"
|
||||
title="&noSpace.label;">
|
||||
|
||||
<script src="chrome://communicator/content/profile/no_space.js"></script>
|
||||
<keyset id="keyset"/>
|
||||
|
||||
<box flex="1">
|
||||
<box orient="horizontal">
|
||||
<text id="outOfSpace" value="&errorText1.label;"/>
|
||||
<spring flex="100%"/>
|
||||
<image id="info.icon" src="chrome://global/skin/message-icon.gif" />
|
||||
</box>
|
||||
<separator orient="vertical" class="thin"/>
|
||||
</box>
|
||||
|
||||
<spring flex="50%"/>
|
||||
|
||||
<box orient="horizontal" id="errorTextBody">
|
||||
<text value="&errorText2.label;"/>
|
||||
</box>
|
||||
|
||||
<spring flex="50%"/>
|
||||
|
||||
<separator class="thin"/>
|
||||
<box class="selection" id="RetryNewCancelButtons">
|
||||
<button class="dialog push" id="retry" default="true" value="&buttonRetry.label;" onclick="OnRetry();"/>
|
||||
<button class="dialog push" id="createNew" value="&buttonCreateNew.label;" onclick="OnCreateNew();" />
|
||||
<button class="dialog push" id="cancel" value="&buttonCancel.label;" onclick="OnCancel();" />
|
||||
</box>
|
||||
|
||||
</window>
|
Загрузка…
Ссылка в новой задаче