summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/common.js b/js/common.js
index e88b62602..e616c70ba 100755
--- a/js/common.js
+++ b/js/common.js
@@ -71,9 +71,9 @@ Element.prototype.fadeOut = function() {
}());
};
-Element.prototype.fadeIn = function(display){
+Element.prototype.fadeIn = function(display = undefined){
this.style.opacity = 0;
- this.style.display = display || "block";
+ this.style.display = display == undefined ? "block" : display;
const self = this;
(function fade() {