Merge Develop into Master
This commit is contained in:
1 parent
2d7ed1d085
commit
2bb78c50fb
4223 files changed
+1207152
-16544
No files matched your search
+6
-9
@@ -14,11 +14,8 @@ function newAppPostLoader() {
|
||||
|
||||
function start() {
|
||||
try {
|
||||
/* Moving PROJECTS_ARRAY to the global variable */
|
||||
PROJECTS_ARRAY = window.PROJECTS
|
||||
window.PROJECTS = undefined
|
||||
|
||||
setBrowserEvents()
|
||||
|
||||
// autoSaveWhenClosingTheBrowser()
|
||||
setupProjectsSchema()
|
||||
|
||||
function setupProjectsSchema() {
|
||||
@@ -35,8 +32,8 @@ function newAppPostLoader() {
|
||||
let totalWebServerCalls = 0
|
||||
let webServerResponses = 0
|
||||
|
||||
for (let i = 0; i < PROJECTS_ARRAY.length; i++) {
|
||||
let project = PROJECTS_ARRAY[i]
|
||||
for (let i = 0; i < PROJECTS_SCHEMA.length; i++) {
|
||||
let project = PROJECTS_SCHEMA[i].name
|
||||
let schemas = {
|
||||
array: {
|
||||
appSchema: [],
|
||||
@@ -213,7 +210,7 @@ function newAppPostLoader() {
|
||||
}
|
||||
}
|
||||
|
||||
function setBrowserEvents() {
|
||||
function autoSaveWhenClosingTheBrowser() {
|
||||
window.onbeforeunload = saveWorkspace
|
||||
|
||||
/* handles backspace and refresh(F5) from keyboard */
|
||||
@@ -229,7 +226,7 @@ function newAppPostLoader() {
|
||||
window.addEventListener('keydown', window.manageBackRefresh)
|
||||
|
||||
function saveWorkspace() {
|
||||
UI.projects.superalgos.spaces.designSpace.workspace.save()
|
||||
UI.projects.foundations.spaces.designSpace.workspace.save()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user