Javascript Script fixing

Job ID: 31511174

Budget: $10 – $30 USD

When the levels are created, the parent ID they use all of them is "parent_ID" because it's the "string" they take on the script, but I would like to add there the "parent" of where they were (if it's a project, take that project.id or if it's another level, use that level.id)

PM for more info
Related categories: JavaScript jQuery / Prototype