Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#421: 45b5727: fixed messages filter buttons disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Aug 5, 2017
1 parent fdc974d commit 8dd11f8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions webui/config.js
Expand Up @@ -54,12 +54,14 @@ var Options = (new function($)

this.update = function()
{
// RPC-function "config" returns CURRENT configurations settings loaded in NZBGet
RPC.call('config', [], function(_options) {
_this.options = _options;
initCategories();
_this.restricted = _this.option('ControlPort') === '***';
});
// RPC-function "config" returns CURRENT configuration settings loaded in NZBGet
RPC.call('config', [], function(_options)
{
_this.options = _options;
initCategories();
_this.restricted = _this.option('ControlPort') === '***';
RPC.next();
});

// loading config templates and build list of post-processing parameters
_this.postParamConfig = [];
Expand Down
2 changes: 1 addition & 1 deletion webui/index.js
Expand Up @@ -774,7 +774,7 @@ var Refresher = (new function($)

if (firstLoad)
{
loadQueue++;
loadQueue += 2; // options and configtemplates
Options.update();
}
}
Expand Down
12 changes: 6 additions & 6 deletions webui/messages.js
Expand Up @@ -99,12 +99,6 @@ var Messages = (new function($)

function loaded(newMessages)
{
if (maxMessages === null)
{
maxMessages = parseInt(Options.option('LogBufferSize'));
initFilterButtons();
}

merge(newMessages);
RPC.next();
}
Expand All @@ -129,6 +123,12 @@ var Messages = (new function($)

this.redraw = function()
{
if (maxMessages === null)
{
maxMessages = parseInt(Options.option('LogBufferSize'));
initFilterButtons();
}

var data = [];

for (var i=0; i < messages.length; i++)
Expand Down

0 comments on commit 8dd11f8

Please sign in to comment.