imported patch quicksearch_sizing
--HG-- branch : gloda-facet
This commit is contained in:
Родитель
97a5a2b41e
Коммит
f3a6fae90c
|
@ -59,12 +59,14 @@
|
||||||
|
|
||||||
<toolbarpalette id="MailToolbarPalette">
|
<toolbarpalette id="MailToolbarPalette">
|
||||||
<!-- gloda search widget; provides global (message) searching. -->
|
<!-- gloda search widget; provides global (message) searching. -->
|
||||||
<toolbaritem id="gloda-search" insertafter="search-container"
|
<toolbaritem id="gloda-search" insertafter="button-stop"
|
||||||
title="&glodaSearch.title;"
|
title="&glodaSearch.title;"
|
||||||
align="center"
|
align="center"
|
||||||
|
flex="1000"
|
||||||
class="chromeclass-toolbar-additional">
|
class="chromeclass-toolbar-additional">
|
||||||
<textbox id="searchInput" flex="1"
|
<textbox id="searchInput"
|
||||||
chromedir="ltr"
|
chromedir="ltr"
|
||||||
|
flex="1"
|
||||||
searchCriteria="true"
|
searchCriteria="true"
|
||||||
type="glodacomplete"
|
type="glodacomplete"
|
||||||
searchbutton="true"
|
searchbutton="true"
|
||||||
|
|
|
@ -187,7 +187,7 @@
|
||||||
|
|
||||||
var prefBranch =
|
var prefBranch =
|
||||||
Components.classes['@mozilla.org/preferences-service;1'].
|
Components.classes['@mozilla.org/preferences-service;1'].
|
||||||
getService(Components.interfaces.nsIPrefBranch);
|
getService(Components.interfaces.nsIPrefBranch2);
|
||||||
prefBranch.addObserver("mailnews.database.global.indexer.enabled", this._prefObserver, false);
|
prefBranch.addObserver("mailnews.database.global.indexer.enabled", this._prefObserver, false);
|
||||||
|
|
||||||
this.glodaCompleter =
|
this.glodaCompleter =
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
this.menupopup.appendChild(saveAsVF);
|
this.menupopup.appendChild(saveAsVF);
|
||||||
this.updateSaveItem();
|
this.updateSaveItem();
|
||||||
this.input = "";
|
this.input = "";
|
||||||
this.glodaEnabled = gPrefBranch.getBoolPref("mailnews.database.global.indexer.enabled");
|
this.glodaEnabled = prefBranch.getBoolPref("mailnews.database.global.indexer.enabled");
|
||||||
this.searchMode = this.glodaEnabled ? "global" : String(quickSearchModes[QuickSearchConstants.kQuickSearchFromOrSubject].value);
|
this.searchMode = this.glodaEnabled ? "global" : String(quickSearchModes[QuickSearchConstants.kQuickSearchFromOrSubject].value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logException(e);
|
logException(e);
|
||||||
|
@ -279,11 +279,14 @@
|
||||||
<property name="searchMode" onget="return this.mQuickSearchMode;"
|
<property name="searchMode" onget="return this.mQuickSearchMode;"
|
||||||
onset="this.mQuickSearchMode = val;
|
onset="this.mQuickSearchMode = val;
|
||||||
this.menupopup.setAttribute('value', val);
|
this.menupopup.setAttribute('value', val);
|
||||||
let currentTabInfo = document.getElementById('tabmail').currentTabInfo;
|
let tabmail = document.getElementById('tabmail');
|
||||||
this.menupopup.getElementsByAttribute('value', this.searchMode)[0].setAttribute('checked', 'true');
|
if (tabmail) { /* if not in the customize toolbar */
|
||||||
if (currentTabInfo)
|
let currentTabInfo = tabmail.currentTabInfo;
|
||||||
currentTabInfo.searchState = this.state;
|
this.menupopup.getElementsByAttribute('value', this.searchMode)[0].setAttribute('checked', 'true');
|
||||||
this.updateEmptyText();"/>
|
if (currentTabInfo)
|
||||||
|
currentTabInfo.searchState = this.state;
|
||||||
|
this.updateEmptyText();
|
||||||
|
}"/>
|
||||||
<field name="_glodaEnabled"/>
|
<field name="_glodaEnabled"/>
|
||||||
<property name="glodaEnabled" onget="return this._glodaEnabled"
|
<property name="glodaEnabled" onget="return this._glodaEnabled"
|
||||||
onset="try {this.showGlodaItems(val); this._glodaEnabled = val;} catch(e) {logException(e);}"/>
|
onset="try {this.showGlodaItems(val); this._glodaEnabled = val;} catch(e) {logException(e);}"/>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
textbox[type="glodacomplete"] {
|
textbox[type="glodacomplete"] {
|
||||||
-moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete");
|
-moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete");
|
||||||
width: 400px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
panel[type="glodacomplete-richlistbox"] {
|
panel[type="glodacomplete-richlistbox"] {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче