Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 84ca8f1

Browse files
Added config to disable shelf save/restore
1 parent d8487b2 commit 84ca8f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

campaign_conversion.zip

2.1 KB
Binary file not shown.

client_resources/js/lib/projectframework.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/* global $ */
2020
/* global _ */
2121

22+
/* version 6.1 */
2223
class ProjectFramework {
2324
/*
2425
PUBLIC INTERFACE
@@ -42,7 +43,8 @@ class ProjectFramework {
4243
viewType: "", // type of the current view. manage | project | scenario | null (none of those)
4344
projectEntities: [], // list of project entities that impact the project revision for the current view. "all" or [entity names]
4445
projectRevisionEntity: "ProjectRevision", // the entity storing the project revision,
45-
projectAttributes: [] // list of entities that are fetched to augment project object for management view
46+
projectAttributes: [], // list of entities that are fetched to augment project object for management view
47+
lastUsed: true // save the last shelf config for a project and restore it next time
4648
}
4749
});
4850
$.extend(this.config, userconfig);
@@ -987,7 +989,8 @@ class ProjectFramework {
987989
self.shelfValid(true);
988990

989991
// its a valid shelf so save it
990-
self._saveShelf();
992+
if (self.config.lastUsed)
993+
self._saveShelf();
991994

992995
self._initProjectRevisionTracking();
993996
}
@@ -1318,7 +1321,6 @@ class ProjectFramework {
13181321
}
13191322
};
13201323

1321-
13221324
/*
13231325
Custom overlay for during custom orchestrated actions like import project
13241326
*/

0 commit comments

Comments
 (0)