mirror of https://github.com/MISP/misp-dashboard
chg: [livelog] Scrolling Logs when fullscreen is on - Fix #118
parent
fba754b2e5
commit
8fd474712b
|
@ -445,6 +445,13 @@ function createHead(callback) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
changeOptions: function(options) {
|
||||||
|
var that = this;
|
||||||
|
Object.keys(options).forEach(function (optionName) {
|
||||||
|
that._options[optionName] = options[optionName];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
fetch_predata: function() {
|
fetch_predata: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
if (this._options.preDataURL !== null) {
|
if (this._options.preDataURL !== null) {
|
||||||
|
@ -808,10 +815,14 @@ $(document).ready(function() {
|
||||||
$panel.detach().prependTo('#page-wrapper')
|
$panel.detach().prependTo('#page-wrapper')
|
||||||
$panel.addClass('liveLogFullScreen');
|
$panel.addClass('liveLogFullScreen');
|
||||||
$this.data('isfullscreen', true);
|
$this.data('isfullscreen', true);
|
||||||
|
$panel.find('#divLogTable').css({'overflow-y': 'auto'});
|
||||||
|
livelog.changeOptions({tableMaxEntries: 300});
|
||||||
} else {
|
} else {
|
||||||
$panel.detach().appendTo('#rightCol')
|
$panel.detach().appendTo('#rightCol')
|
||||||
$panel.removeClass('liveLogFullScreen');
|
$panel.removeClass('liveLogFullScreen');
|
||||||
$this.data('isfullscreen', false);
|
$this.data('isfullscreen', false);
|
||||||
|
$panel.find('#divLogTable').css({'overflow': 'hidden'});
|
||||||
|
livelog.changeOptions({tableMaxEntries: 50});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue