/*Import method for XML formatted file*/
function xmlImport(options) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
success(this);
}
else {
error(this)
}
}
}
xmlHttp.send(getFormData(options));
}
function success(e) {
importFromJSON(e.response);
}
function toolbarClick(args) {
if (args.item.id === 'ImportGantt') {
document.getElementById("fileupload").click();
}
else if (args.item.id == "ExportGantt") {
}
}; |