2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-09-13 15:13:18 +00:00
This commit is contained in:
2019-06-07 23:07:15 +03:00
parent 054a4a0bd8
commit 144db9ee8b
100 changed files with 25137 additions and 1552 deletions

30
tools/manager/js/app.js Normal file
View File

@@ -0,0 +1,30 @@
function init()
{
iui("dlgLogin").dialog().show();
var local = new MemoryStore();
Warehouse.put(local, "local");
iui("divContent").browser();
}
function connect()
{
var url = document.getElementById("txtURL").value;
var domain = document.getElementById("txtDomain").value;
var username = document.getElementById("txtUsername").value;
var password = document.getElementById("txtPassword").value;
iui("dlgLogin").setLoading(true);
var con = new DistributedConnection(url, domain, username, password);
Warehouse.put(con, "remote");
con.on("ready", function (d) {
iui("divContent").setConnection(con);
iui("dlgLogin").hide();
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
}