Commit 192b0217 authored by Jérémie Garcia's avatar Jérémie Garcia

multi user bug fix

parent 9771c959
...@@ -26,8 +26,7 @@ Traj.View.updateSourceButtons = function (id,total){ ...@@ -26,8 +26,7 @@ Traj.View.updateSourceButtons = function (id,total){
Traj.Manager.allowed_indexes = [id+1]; Traj.Manager.allowed_indexes = [id+1];
} }
//update the SourceButtons the buttons accordingly
//updateSourceButtonste the buttons accordingly
for (var k=0;k<buttons.length;k++) { for (var k=0;k<buttons.length;k++) {
//show the ones that may have been swithed of //show the ones that may have been swithed of
buttons[k].style.display = "block"; buttons[k].style.display = "block";
...@@ -38,9 +37,8 @@ Traj.View.updateSourceButtons = function (id,total){ ...@@ -38,9 +37,8 @@ Traj.View.updateSourceButtons = function (id,total){
if(k!=0 && k!=2){ if(k!=0 && k!=2){
buttons[k].style.display = "none"; buttons[k].style.display = "none";
} }
} }else if(id===1){
if(id ===1){ //the second has 2 and 4 if(k!=1 && k!=3){
if(k=!1 && k!=3){
buttons[k].style.display = "none"; buttons[k].style.display = "none";
} }
} }
......
test
\ No newline at end of file
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