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

org.xowl.infra.server.site.modules.db-new.js Maven / Gradle / Ivy

There is a newer version: 2.3.4
Show newest version
// Copyright (c) 2016 Association Cénotélie (cenotelie.fr)
// Provided under LGPL v3

var xowl = new XOWL();

function init() {
	doSetupPage(xowl, true, [{name: "New Database"}], function() {});
}

function onCreateDB() {
	var name = document.getElementById("field-name").value;
	if (name === null || name === "")
		return;
	if (!onOperationRequest("Creating database " + name + " ..."))
		return;
	xowl.createDatabase(function (status, type, content) {
		if (onOperationEnded(status, content)) {
			displayMessage("success", "Created database " + name + ".");
			waitAndGo("db.html?db=" + encodeURIComponent(name));
		}
	}, name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy