fix bug 70747 [XUL Syntax] Replace <textfield> with <textbox>

r=blake, a=ben
This commit is contained in:
maolson%earthlink.net 2006-07-29 05:36:20 +00:00
Родитель 8186c39920
Коммит 3e09ae4aad
4 изменённых файлов: 7 добавлений и 7 удалений

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

@ -55,7 +55,7 @@
</box>
<box orient="horizontal">
<textfield id="zoomValue" oninput="doEnabling();"/>
<textbox id="zoomValue" oninput="doEnabling();"/>
</box>
<box id="okCancelButtons"/>

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

@ -31,7 +31,7 @@
pref = pref.QueryInterface(Components.interfaces.nsIPref);
// Prefill a single text field
function prefillTextField(target) {
function prefillTextBox(target) {
// obtain values to be used for prefilling
var walletService = Components.classes["@mozilla.org/wallet/wallet-service;1"].getService(Components.interfaces.nsIWalletService);
@ -114,7 +114,7 @@
&& event.detail == 2 // double click
&& event.button == 0 // left mouse button
&& event.target.value.length == 0) { // no text has been entered
prefillTextField(target); // prefill the empty text field if possible
prefillTextBox(target); // prefill the empty text field if possible
}
break;
default:

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

@ -247,7 +247,7 @@ nsContextMenu.prototype = {
this.imageURL = this.makeURLAbsolute( this.target.ownerDocument,
this.target.src );
} else /* if (this.target.getAttribute( "type" ).toUpperCase() == "TEXT") */ {
this.onTextInput = this.isTargetATextField(this.target);
this.onTextInput = this.isTargetATextBox(this.target);
}
} else if ( this.target.tagName.toUpperCase() == "TEXTAREA" ) {
this.onTextInput = true;
@ -316,7 +316,7 @@ nsContextMenu.prototype = {
// Test for element types of interest.
if ( elem.nodeType == 1 ) {
// Clicked on a link.
this.onTextInput = this.isTargetATextField(elem);
this.onTextInput = this.isTargetATextBox(elem);
}
elem = elem.parentNode;
}
@ -685,7 +685,7 @@ nsContextMenu.prototype = {
"contextMenu.inFrame = " + this.inFrame + "\n" +
"contextMenu.hasBGImage = " + this.hasBGImage + "\n";
},
isTargetATextField : function ( node )
isTargetATextBox : function ( node )
{
if (node.tagName.toUpperCase() == "INPUT") {
var attrib = node.getAttribute("type").toUpperCase();

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

@ -64,7 +64,7 @@
<separator class="thin"/>
<box autostretch="never">
<textfield id="dialog.input" flex="1" oninput="doEnabling();"/>
<textbox id="dialog.input" flex="1" oninput="doEnabling();"/>
<button value="&chooseFile.label;" onclick="onChooseFile();"/>
</box>
<box autostretch="never" valign="center">