Main.js (PHProjekt-6.2.0) | : | Main.js (PHProjekt-6.2.1) | ||
---|---|---|---|---|
skipping to change at line 277 | skipping to change at line 277 | |||
}); | }); | |||
}, | }, | |||
changeProject: function(projectId, functionFrom) { | changeProject: function(projectId, functionFrom) { | |||
// Summary: | // Summary: | |||
// this function loads a new project with the default submodule | // this function loads a new project with the default submodule | |||
// Description: | // Description: | |||
// If the current submodule don't have access, the first found submod ule is used | // If the current submodule don't have access, the first found submod ule is used | |||
// When a new submodule is called, the new grid is displayed, | // When a new submodule is called, the new grid is displayed, | |||
// the navigation changed and the Detail View is resetted | // the navigation changed and the Detail View is resetted | |||
phpr.currentProjectId = parseInt(projectId); | phpr.currentProjectId = parseInt(projectId, 10); | |||
if (!phpr.currentProjectId) { | if (!phpr.currentProjectId) { | |||
phpr.currentProjectId = phpr.rootProjectId; | phpr.currentProjectId = phpr.rootProjectId; | |||
} | } | |||
if (phpr.isGlobalModule(this.module)) { | if (phpr.isGlobalModule(this.module)) { | |||
// System Global Modules | // System Global Modules | |||
if (this.module == 'Administration' || | if (this.module == 'Administration' || | |||
this.module == 'Setting' || | this.module == 'Setting' || | |||
phpr.parentmodule == 'Setting' || | phpr.parentmodule == 'Setting' || | |||
phpr.parentmodule == 'Administration') { | phpr.parentmodule == 'Administration') { | |||
phpr.module = null; | phpr.module = null; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |