<reponame>TrellixVulnTeam/rucio-old_MT1E<filename>lib/rucio/web/ui/static/version.js<gh_stars>0/* Copyright European Organization for Nuclear Research (CERN)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Authors:
 * - Thomas Beermann, <ychag@example.com>, 2016
 */

get_version = function() {
    version = '-';
    jQuery.ajax({
        url: '/static/webui_version',
        async: false,
        success: function(data)
        {
            version = data;
        },
    });
    return version;
}
