mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
scrollbar and scroll to bottom on logs page
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
@import "./extend/plugins";
|
||||
@import "./extend/rewards";
|
||||
@import "./advanced/database";
|
||||
@import "./advanced/logs";
|
||||
@import "./settings";
|
||||
|
||||
@import "./modules/alerts";
|
||||
|
||||
8
public/less/admin/advanced/logs.less
Normal file
8
public/less/admin/advanced/logs.less
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
.logs {
|
||||
.panel-body {
|
||||
pre {
|
||||
height: 600px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ define('admin/advanced/logs', function() {
|
||||
|
||||
Logs.init = function() {
|
||||
var logsEl = $('.logs pre');
|
||||
|
||||
logsEl.scrollTop(logsEl.prop('scrollHeight'));
|
||||
// Affix menu
|
||||
$('.affix').affix();
|
||||
|
||||
@@ -19,6 +19,7 @@ define('admin/advanced/logs', function() {
|
||||
socket.emit('admin.logs.get', function(err, logs) {
|
||||
if (!err) {
|
||||
logsEl.text(logs);
|
||||
logsEl.scrollTop(logsEl.prop('scrollHeight'));
|
||||
} else {
|
||||
app.alertError(err.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user