* Fix utils function hideComments.
* Fix function name.
This commit is contained in:
parent
86b9b5aa50
commit
3feea66b49
@ -62,7 +62,7 @@ NexT.boot.refresh = function() {
|
|||||||
NexT.utils.registerCommonSwitch();
|
NexT.utils.registerCommonSwitch();
|
||||||
NexT.utils.domAddClass('#goto-comments', 'goto-comments-on');
|
NexT.utils.domAddClass('#goto-comments', 'goto-comments-on');
|
||||||
} else {
|
} else {
|
||||||
NexT.utils.hideCommontes();
|
NexT.utils.hideComments();
|
||||||
}
|
}
|
||||||
NexT.utils.registerImageViewer();
|
NexT.utils.registerImageViewer();
|
||||||
|
|
||||||
|
@ -481,8 +481,11 @@ NexT.utils = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
hideCommontes: function () {
|
hideComments: function () {
|
||||||
document.querySelector('.post-comments').style.display = 'none';
|
let postComments = document.querySelector('.post-comments');
|
||||||
|
if (postComments !== null) {
|
||||||
|
postComments.style.display = 'none';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
hiddeLodingCmp: function (selector) {
|
hiddeLodingCmp: function (selector) {
|
||||||
|
Loading…
Reference in New Issue
Block a user