Commit 98b9a96d authored by TheJeremail's avatar TheJeremail
Browse files

Completely Revert to Old Networking routinge (possible bugs?)

Prevent accidental DB issues through UI when adding/removing assignees
parent 5b247a12
......@@ -32,7 +32,7 @@ if (window.location.hash.substring(1, 6) == "graph") {
jmcjs.events.triggerEvent("nav", window.location.hash.substring(1, window.location.hash.length));
setTimeout(loadGraph, 5);
setInterval(getNews, 3000);
setTimeout("log_message('Workspace Loading...')",10);
setTimeout("log_message('Workspace Loading...')",3);
//Init Navigation
jmcjs.route.init();
......@@ -115,6 +115,7 @@ function node_delete_with_children() {
}
function node_delete_recursive(node) {
log_message("Deleting Node...");
if (nodeTree[node] == undefined)
return;
for (child in nodeTree[node]["children"]) {
......@@ -130,6 +131,7 @@ function node_delete_recursive(node) {
var possibleMembers = [];
function node_edit_assignee_add(object) {
object.parentElement.childNodes[1].style.visibility = "hidden";
possibleMembers = [];
var listItems = '<div class="input-field"><select class="browser-default" style="background-color: rgba(255,255,255,0.6);">';
for (field in teamData["members"]) {
......@@ -153,12 +155,13 @@ function node_edit_assignee_add(object) {
}
}
listItems += '</select></div>';
object.parentElement.childNodes[3].innerHTML = listItems;
object.childNodes[0].innerText = "save";
object.parentElement.childNodes[3].innerHTML = listItems;
object.setAttribute("onclick", "node_edit_assignee_add_done(this)");
}
function node_edit_assignee_remove(object) {
object.parentElement.childNodes[2].style.visibility = "hidden";
possibleMembers = [];
var listItems = '<div class="input-field"><select class="browser-default" style="background-color: rgba(255,255,255,0.6);">';
for (field in teamData["members"]) {
......
......@@ -88,15 +88,15 @@ function updateTeamData() {
var lastNews = "";
function getNews() {
//return 0; //This has been re-enabled to allow a backport-hotfix
if (currentRevision > 0)
if (currentRevision >= 0)
async_post("?getNews&revision=" + currentRevision, "", function(data) {
if (data == lastNews)
return;
lastNews = data;
try {
data = JSON.parse(data);
processUpdatePackage(data);
//Disabled for backports: processUpdatePackage(data);
//Disabled for backports: return 0;
currentRevision = data["meta"]["revision"];
var changedNodes = [];
......
......@@ -68,8 +68,8 @@ function loadGraph() {
async_post("?getAllNodes", "", function(data) {
if (data != undefined) {
data = JSON.parse(data);
processUpdatePackage(data);
return; //This makes A* use the new loader routine.
//Disabled for backports: processUpdatePackage(data);
//Disabled for backports: return; //This makes A* use the new loader routine.
for (node in data["nodes"]) {
if (data["nodes"][node]["assignees"] != undefined)
data["nodes"][node]["assignees"] = JSON.parse(data["nodes"][node]["assignees"]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment