Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why gantt sometimes output the tasks out of order #156

Open
zlv-thisF opened this issue Jan 12, 2020 · 0 comments
Open

why gantt sometimes output the tasks out of order #156

zlv-thisF opened this issue Jan 12, 2020 · 0 comments

Comments

@zlv-thisF
Copy link

zlv-thisF commented Jan 12, 2020

jquery gantt editor is awesome !!!

i use it in an iframe in to interface with my page, the messsage.js code is like below:

 // button onclick is saveGanttOnServe
function saveGanttOnServer() {
      var prj = ge.saveProject();
      messageService.save(prj);
}

in messageService.js

save(project) {
    this.postMessage({ event: "save", content: project });
 }
postMessage(msg) {
    window.parent.postMessage(xxxxxx, content: msg.content }, "*");
}

but sometimes i check the message posted from gantt iframe, it turns out that the tasks is not execpected:
two types of error have been found in my project as
1 out of order -- the main task which level is 0 is in the middle of the tasks array
2 missing data -- the main task which level is 0 is missing (in that case , some other tasks is missing too)

it confused my quite a lot ... any idea how the strange behavior come from ?
thanks a lot

@zlv-thisF zlv-thisF changed the title why gantt sometimes give me the tasks out of order why gantt sometimes output the tasks out of order Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant