зеркало из https://github.com/mozilla/gecko-dev.git
89198 - add option to show comments column in autocomplete, r=blake, sr=ben
This commit is contained in:
Родитель
16f150a12d
Коммит
7e51d436ae
|
@ -162,6 +162,7 @@ Contributor(s): ______________________________________. -->
|
|||
type="autocomplete" searchSessions="history"
|
||||
timeout="50" maxrows="6" alwaysOpenPopup="true"
|
||||
defaultSearchEngine="true" tabScrolling="true"
|
||||
showCommentColumn="true"
|
||||
tooltip="aTooltip" tooltiptext="&locationBar.tooltip;"
|
||||
ontextcommand="return handleURLBarCommand(userAction);"
|
||||
ontextrevert="return handleURLBarRevert();"
|
||||
|
|
|
@ -127,9 +127,6 @@
|
|||
|
||||
<property name="mInputListener"><![CDATA[
|
||||
(function(aEvent) {
|
||||
this.resultsPopup.mSearchBox.searchValue = this.currentSearchString;
|
||||
return;
|
||||
|
||||
// "this" is the textbox, not the popup
|
||||
if (this.mSearchInputTO)
|
||||
window.clearTimeout(this.mSearchInputTO);
|
||||
|
@ -139,21 +136,13 @@
|
|||
|
||||
<property name="mInputTimeout"><![CDATA[
|
||||
(function(me) {
|
||||
me.resultsPopup.mSearchBox.searchValue = me.currentSearchString;
|
||||
me.resultsPopup.mSearchBox.searchValue = me.value;
|
||||
me.mSearchInputTO = 0;
|
||||
});
|
||||
]]></property>
|
||||
|
||||
<property name="mEnginesReady">false</property>
|
||||
|
||||
<!-- initialize the columns in the outliner -->
|
||||
<method name="initColumns">
|
||||
<body><![CDATA[
|
||||
this.addColumn({id: "value", flex: 2});
|
||||
this.addColumn({id: "comment", flex: 1});
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="getOverrideValue">
|
||||
<body><![CDATA[
|
||||
if (this.mSearchBox.selectedIndex != null)
|
||||
|
|
Загрузка…
Ссылка в новой задаче