Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update todo and move SourceManager out (not used here)

  • Loading branch information...
commit a9f56688ae0b1e821ab3b3cb33b3a050f08b0a5b 1 parent d3fe95c
@optilude optilude authored
Showing with 7 additions and 46 deletions.
  1. +7 −7 docs/TODO.txt
  2. +0 −39 src/plone/app/theming/browser/resources/mapper.js
View
14 docs/TODO.txt
@@ -4,17 +4,17 @@ plone.app.theming to-do
File manager
------------
-[ ] Refactor JavaScript to make it more maintainable
+[ ] Show current path when adding/uploading file/folder
+[ ] Add right-click options to add file, folder and upload
-[ ] Remove 'current folder' stateful variable
- - Use right click for add/upload operations
- - Select folder from within add/upload dialogues
+[ ] Bug: If an open file is moved and then saved, saves to wrong location
+[ ] Bug: It is possible to rename a file to something with a slash in it
+[ ] Bug: Download in right-click menu does nothing
-[ ] Improve styling overall
-[ ] Style right-click menu more like Plone
+[ ] Improve layout of prompt overlay
+[ ] Let user choose different target folder for add/upload file/folder from within overlay prompt
[ ] Cmd-Shift-] and Cmd-Shift-[ to move right/left between tabs
-[ ] IE support - may need to use the SourceEditor abstraction from mapper.js
Mapper
------
View
39 src/plone/app/theming/browser/resources/mapper.js
@@ -383,42 +383,3 @@ LinkManager.prototype.setupForms = function() {
});
};
-// Source manager
-
-var SourceManager = function() {
- this.dirty = {};
- this.source = {};
- this.currentPath = null;
-};
-
-SourceManager.prototype.isDirty = function(path) {
- if(path == undefined) path = this.currentPath;
- return this.dirty[path] || false;
- };
-
-SourceManager.prototype.markDirty = function(path) {
- if(path == undefined) path = this.currentPath;
- this.dirty[path] = true;
- };
-
-SourceManager.prototype.markClean = function(path) {
- if(path == undefined) path = this.currentPath;
- this.dirty[path] = false;
- };
-
-SourceManager.prototype.hasSource = function(path) {
- return this.source[path] != undefined;
- };
-
-SourceManager.prototype.setSource = function(path, source) {
- if(source == undefined) {
- source = path;
- path = this.currentPath;
- }
- this.source[path] = source;
- };
-
-SourceManager.prototype.getSource = function(path) {
- if(path == undefined) path = this.currentPath;
- return this.source[path];
- };
Please sign in to comment.
Something went wrong with that request. Please try again.