Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions outdatedbrowser/outdatedbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,28 +135,33 @@ var outdatedBrowser = function(options) {
outdated.children[1].style.color = txtColor;

//check settings attributes
btnUpdate.style.color = txtColor;
// btnUpdate.style.borderColor = txtColor;
if (btnUpdate.style.borderColor) {
btnUpdate.style.borderColor = txtColor;
if (btnUpdate) {
btnUpdate.style.color = txtColor;
// btnUpdate.style.borderColor = txtColor;
if (btnUpdate.style.borderColor) {
btnUpdate.style.borderColor = txtColor;
}

//Override the update button color to match the background color
btnUpdate.onmouseover = function() {
this.style.color = bkgColor;
this.style.backgroundColor = txtColor;
};
btnUpdate.onmouseout = function() {
this.style.color = txtColor;
this.style.backgroundColor = bkgColor;
};
}

if (btnClose) {
btnClose.style.color = txtColor;

//close button
btnClose.onmousedown = function() {
outdated.style.display = 'none';
return false;
};
}
btnClose.style.color = txtColor;

//close button
btnClose.onmousedown = function() {
outdated.style.display = 'none';
return false;
};

//Override the update button color to match the background color
btnUpdate.onmouseover = function() {
this.style.color = bkgColor;
this.style.backgroundColor = txtColor;
};
btnUpdate.onmouseout = function() {
this.style.color = txtColor;
this.style.backgroundColor = bkgColor;
};
} //end styles and events


Expand Down