diff options
Diffstat (limited to 'interface/js/app/common.js')
-rw-r--r-- | interface/js/app/common.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/interface/js/app/common.js b/interface/js/app/common.js index ea6102f60..0364ed0e9 100644 --- a/interface/js/app/common.js +++ b/interface/js/app/common.js @@ -138,6 +138,11 @@ define(["jquery", "nprogress"], return e.options[e.selectedIndex].value; }; + ui.getServer = function () { + const checked_server = ui.getSelector("selSrv"); + return (checked_server === "All SERVERS") ? "local" : checked_server; + }; + /** * @param {string} url - A string containing the URL to which the request is sent * @param {Object} [options] - A set of key/value pairs that configure the Ajax request. All settings are optional. |