mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-12-28 11:32:05 +00:00
#363: remove Get Add-ons, remove built-in AMO search
This commit is contained in:
parent
ffbe7ea3a0
commit
9433b647c1
@ -221,6 +221,7 @@ richlistitem:not([selected]) * {
|
||||
|
||||
#header-search {
|
||||
width: 22em;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#header-utils-btn {
|
||||
|
@ -217,6 +217,8 @@ function isCorrectlySigned(aAddon) {
|
||||
}
|
||||
|
||||
function isDiscoverEnabled() {
|
||||
return false; // issue 363
|
||||
/*
|
||||
if (Services.prefs.getPrefType(PREF_DISCOVERURL) == Services.prefs.PREF_INVALID)
|
||||
return false;
|
||||
|
||||
@ -231,6 +233,7 @@ function isDiscoverEnabled() {
|
||||
} catch (e) {}
|
||||
|
||||
return true;
|
||||
*/
|
||||
}
|
||||
|
||||
function getExperimentEndDate(aAddon) {
|
||||
@ -1745,6 +1748,7 @@ var gCategories = {
|
||||
initialize: function() {
|
||||
this.node = document.getElementById("categories");
|
||||
this._search = this.get("addons://search/");
|
||||
this._search.disabled = true;
|
||||
|
||||
var types = AddonManager.addonTypes;
|
||||
for (var type in types)
|
||||
@ -1969,6 +1973,7 @@ var gHeader = {
|
||||
|
||||
initialize: function() {
|
||||
this._search = document.getElementById("header-search");
|
||||
this._search.disabled = true;
|
||||
|
||||
this._search.addEventListener("command", function(aEvent) {
|
||||
var query = aEvent.target.value;
|
||||
@ -1993,7 +1998,7 @@ var gHeader = {
|
||||
},
|
||||
|
||||
focusSearchBox: function() {
|
||||
this._search.focus();
|
||||
//this._search.focus();
|
||||
},
|
||||
|
||||
onKeyPress: function(aEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user