зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1103181 - Remove quote() from about:addons/config on android/metro. r=rnewman
This commit is contained in:
Родитель
e3b9437846
Коммит
005a19658a
|
@ -86,7 +86,7 @@ var NewPrefDialog = {
|
|||
}
|
||||
|
||||
// If item already in list, it's being changed, else added
|
||||
let item = document.querySelector(".pref-item[name=" + aPrefName.quote() + "]");
|
||||
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(aPrefName) + "\"]");
|
||||
if (item) {
|
||||
this._positiveButton.textContent = gStringBundle.GetStringFromName("newPref.changeButton");
|
||||
} else {
|
||||
|
@ -463,7 +463,7 @@ var AboutConfig = {
|
|||
}
|
||||
|
||||
// If pref not already in list, refresh display as it's being added
|
||||
let item = document.querySelector(".pref-item[name=" + pref.name.quote() + "]");
|
||||
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(pref.name) + "\"]");
|
||||
if (!item) {
|
||||
document.location.reload();
|
||||
return;
|
||||
|
|
|
@ -238,7 +238,7 @@ var Addons = {
|
|||
|
||||
_getElementForAddon: function(aKey) {
|
||||
let list = document.getElementById("addons-list");
|
||||
let element = list.querySelector("div[addonID=" + aKey.quote() + "]");
|
||||
let element = list.querySelector("div[addonID=\"" + CSS.escape(aKey) + "\"]");
|
||||
return element;
|
||||
},
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ var NewPrefDialog = {
|
|||
}
|
||||
|
||||
// If item already in list, it's being changed, else added
|
||||
let item = document.querySelector(".pref-item[name=" + aPrefName.quote() + "]");
|
||||
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(aPrefName) + "\"]");
|
||||
if (item) {
|
||||
this._positiveButton.textContent = gStringBundle.GetStringFromName("newPref.changeButton");
|
||||
} else {
|
||||
|
@ -472,7 +472,7 @@ var AboutConfig = {
|
|||
}
|
||||
|
||||
// If pref not already in list, refresh display as it's being added
|
||||
let item = document.querySelector(".pref-item[name=" + pref.name.quote() + "]");
|
||||
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(pref.name) + "\"]");
|
||||
if (!item) {
|
||||
document.location.reload();
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче