зеркало из https://github.com/mozilla/gecko-dev.git
REmoving toggle background, bug 160517
This commit is contained in:
Родитель
4bde9547fe
Коммит
5bd33078ee
|
@ -839,29 +839,3 @@ MonthView.getViewHeight = function( ){
|
|||
toReturn = parseInt( toReturn ); //strip off the px at the end
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
/*Creates a background attribute on month-grid-box and all the month-day-box classes,
|
||||
if one exists it flips the value between true and false*/
|
||||
MonthView.toggleBackground = function( ){
|
||||
var vboxen = document.getElementsByTagName("vbox");
|
||||
//do the outer grid box
|
||||
if(document.getElementById("month-grid-box").getAttribute("background")){
|
||||
if(document.getElementById("month-grid-box").getAttribute("background") == "true"){
|
||||
document.getElementById("month-grid-box").removeAttribute("background");
|
||||
}else{
|
||||
document.getElementById("month-grid-box").setAttribute("background", "true");
|
||||
}
|
||||
}else{
|
||||
document.getElementById("month-grid-box").setAttribute("background", "true");
|
||||
}
|
||||
//do all the month-day-boxes
|
||||
for(var i = 0; i < vboxen.length; i++){
|
||||
if(vboxen[i].className == "month-day-box-class" || vboxen[i].className == "month-day-box-class weekend" || vboxen[i].className == "month-day-box-class weekend saturday"){
|
||||
if(vboxen[i].getAttribute("background")){
|
||||
vboxen[i].setAttribute("background", vboxen[i].getAttribute("background") == "true" ? "false" : "true");
|
||||
}else{
|
||||
vboxen[i].setAttribute("background","true");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -839,29 +839,3 @@ MonthView.getViewHeight = function( ){
|
|||
toReturn = parseInt( toReturn ); //strip off the px at the end
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
/*Creates a background attribute on month-grid-box and all the month-day-box classes,
|
||||
if one exists it flips the value between true and false*/
|
||||
MonthView.toggleBackground = function( ){
|
||||
var vboxen = document.getElementsByTagName("vbox");
|
||||
//do the outer grid box
|
||||
if(document.getElementById("month-grid-box").getAttribute("background")){
|
||||
if(document.getElementById("month-grid-box").getAttribute("background") == "true"){
|
||||
document.getElementById("month-grid-box").removeAttribute("background");
|
||||
}else{
|
||||
document.getElementById("month-grid-box").setAttribute("background", "true");
|
||||
}
|
||||
}else{
|
||||
document.getElementById("month-grid-box").setAttribute("background", "true");
|
||||
}
|
||||
//do all the month-day-boxes
|
||||
for(var i = 0; i < vboxen.length; i++){
|
||||
if(vboxen[i].className == "month-day-box-class" || vboxen[i].className == "month-day-box-class weekend" || vboxen[i].className == "month-day-box-class weekend saturday"){
|
||||
if(vboxen[i].getAttribute("background")){
|
||||
vboxen[i].setAttribute("background", vboxen[i].getAttribute("background") == "true" ? "false" : "true");
|
||||
}else{
|
||||
vboxen[i].setAttribute("background","true");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -233,8 +233,6 @@
|
|||
<!ENTITY calendar.context.weekview.accesskey "w">
|
||||
<!ENTITY calendar.context.monthview.label "Switch To Month View">
|
||||
<!ENTITY calendar.context.monthview.accesskey "m">
|
||||
<!ENTITY calendar.context.toggleBackground.label "Toggle Background">
|
||||
<!ENTITY calendar.context.toggleBackground.accesskey "b">
|
||||
<!ENTITY calendar.context.reload.label "Reload">
|
||||
<!ENTITY calendar.context.reload.accesskey "r">
|
||||
<!ENTITY calendar.context.emailevent.label "Email Event">
|
||||
|
|
Загрузка…
Ссылка в новой задаче