added newFolderNameDialog.xul & newFolderNameDialog.js

This commit is contained in:
jefft%netscape.com 1999-08-11 04:51:34 +00:00
Родитель ae63822653
Коммит 4f23e1a295
5 изменённых файлов: 90 добавлений и 0 удалений

Просмотреть файл

@ -28,3 +28,5 @@ subscribe.xul
contentframe.xul
sidebar-messenger.xul
sidebar-messenger.rdf
newFolderNameDialog.xul
newFolderNameDialog.js

Просмотреть файл

@ -41,6 +41,8 @@ EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/contentframe.xul \
$(srcdir)/sidebar-messenger.xul \
$(srcdir)/sidebar-messenger.rdf \
$(srcdir)/newFolderNameDialog.xul \
$(srcdir)/newFolderNameDialog.js \
$(NULL)
EXPORT_RESOURCE_SAMPLES_TO_REMOVE := $(addprefix $(SAMPLES_DIR)/, $(EXPORT_RESOURCE_SAMPLES))

Просмотреть файл

@ -32,6 +32,8 @@ install::
$(MAKE_INSTALL) contentframe.xul $(DIST)\bin\chrome\messenger\content\default
$(MAKE_INSTALL) sidebar-messenger.xul $(DIST)\bin\chrome\messenger\content\default
$(MAKE_INSTALL) sidebar-messenger.rdf $(DIST)\bin\chrome\messenger\content\default
$(MAKE_INSTALL) newFolderNameDialog.xul $(DIST)\bin\chrome\messenger\content\default
$(MAKE_INSTALL) newFolderNameDialog.js $(DIST)\bin\chrome\messenger\content\default
clobber::
rm -f $(DIST)\chrome\messenger\content\default\messenger.xul
@ -46,4 +48,6 @@ clobber::
rm -f $(DIST)\chrome\messenger\content\default\contentframe.xul
rm -f $(DIST)\chrome\messenger\content\default\sidebar-messenger.xul
rm -f $(DIST)\chrome\messenger\content\default\sidebar-messenger.rdf
rm -f $(DIST)\chrome\messenger\content\default\newFolderNameDialog.xul
rm -f $(DIST)\chrome\messenger\content\default\newFolderNameDialog.js

Просмотреть файл

@ -0,0 +1,32 @@
var okCallback = 0;
function newFolderNameOnLoad()
{
doSetOKCancel(newFolderNameOKButton, 0);
// look in arguments[0] for parameters
if (window.arguments && window.arguments[0])
{
if ( window.arguments[0].title )
{
dump("title = " + window.arguments[0].title + "\n");
var title = window.arguments[0].title;
top.window.title = title;
}
if ( window.arguments[0].okCallback )
top.okCallback = window.arguments[0].okCallback;
}
}
function newFolderNameOKButton()
{
if ( top.okCallback )
{
var name = document.getElementById('name').value;
top.okCallback(name);
}
return true;
}

Просмотреть файл

@ -0,0 +1,50 @@
<?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, released
March 31, 1998.
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.
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://messenger/locale/newFolderNameDialog.dtd">
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
align="vertical"
class="dialog"
onload="newFolderNameOnLoad()"
style="padding:10px">
<html:script language="JavaScript" src="chrome://messenger/content/newFolderNameDialog.js"/>
<box align="vertical" style="width:36em; min-height:12em">
<spring flex="100%"/>
<html:div style="margin-bottom:.3em">&name.label;</html:div>
<html:input tabindex="0" type="text" id="name" style="width:100%"/>
<spring flex="100%"/>
<box id="okCancelButtons"/>
</box>
</window>