diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 17:15:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 17:15:22 +0300 |
commit | d445530fa08cdbe2088150a3e7d23596eab9b142 (patch) | |
tree | 0c9e9a44cfd5f38835857fd961ee17c11e9e54f9 /js/common.js | |
parent | 4fa8450d38ccafdfa1117aa8a6fa570ce9fecb09 (diff) |
format note on the client
Diffstat (limited to 'js/common.js')
-rwxr-xr-x | js/common.js | 4 |
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() { |