All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.js.server.js Maven / Gradle / Ivy

There is a newer version: 2.0.0-M15
Show newest version
function server() {
    riot.observable(this); // Riot provides our event emitter.

    var self = this;

    self.security = {};

    self.init = function() {
        $.get('api/server/security', function(data) {
            self.security = data;
            self.trigger('initialized', self.security);
        }).fail(function(xhr, status, error) {
            var err = "Unable to get the server info";
            console.error(err, status, error, xhr.responseText);
            alert(err + ": " + xhr.responseText);
        });
    };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy