mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-10 02:29:43 +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 {
|
#header-search {
|
||||||
width: 22em;
|
width: 22em;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-utils-btn {
|
#header-utils-btn {
|
||||||
|
|
|
@ -217,6 +217,8 @@ function isCorrectlySigned(aAddon) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isDiscoverEnabled() {
|
function isDiscoverEnabled() {
|
||||||
|
return false; // issue 363
|
||||||
|
/*
|
||||||
if (Services.prefs.getPrefType(PREF_DISCOVERURL) == Services.prefs.PREF_INVALID)
|
if (Services.prefs.getPrefType(PREF_DISCOVERURL) == Services.prefs.PREF_INVALID)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -231,6 +233,7 @@ function isDiscoverEnabled() {
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function getExperimentEndDate(aAddon) {
|
function getExperimentEndDate(aAddon) {
|
||||||
|
@ -1745,6 +1748,7 @@ var gCategories = {
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.node = document.getElementById("categories");
|
this.node = document.getElementById("categories");
|
||||||
this._search = this.get("addons://search/");
|
this._search = this.get("addons://search/");
|
||||||
|
this._search.disabled = true;
|
||||||
|
|
||||||
var types = AddonManager.addonTypes;
|
var types = AddonManager.addonTypes;
|
||||||
for (var type in types)
|
for (var type in types)
|
||||||
|
@ -1969,6 +1973,7 @@ var gHeader = {
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this._search = document.getElementById("header-search");
|
this._search = document.getElementById("header-search");
|
||||||
|
this._search.disabled = true;
|
||||||
|
|
||||||
this._search.addEventListener("command", function(aEvent) {
|
this._search.addEventListener("command", function(aEvent) {
|
||||||
var query = aEvent.target.value;
|
var query = aEvent.target.value;
|
||||||
|
@ -1993,7 +1998,7 @@ var gHeader = {
|
||||||
},
|
},
|
||||||
|
|
||||||
focusSearchBox: function() {
|
focusSearchBox: function() {
|
||||||
this._search.focus();
|
//this._search.focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeyPress: function(aEvent) {
|
onKeyPress: function(aEvent) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user