Skip to content
Snippets Groups Projects
Commit 5ab3fab6 authored by juanf's avatar juanf
Browse files

SSDM-3287 : Tree navigation - working prototype

SVN: 35868
parent 3bb0c14c
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) { ...@@ -69,7 +69,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) {
_this.repaintFiles(code, files.result); _this.repaintFiles(code, files.result);
} }
_this.updateDirectoryView(code, "/", repaintEvent); _this.updateDirectoryView(code, "/", false, repaintEvent);
}; };
} }
...@@ -112,12 +112,9 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) { ...@@ -112,12 +112,9 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) {
this.repaintFiles = function(datasetCode, datasetFiles) { this.repaintFiles = function(datasetCode, datasetFiles) {
var _this = this; var _this = this;
var parentPath = this._dataSetViewerModel.lastUsedPath[this._dataSetViewerModel.lastUsedPath.length - 1];
var $container = $("#"+this._dataSetViewerModel.containerIdContent); var $container = $("#"+this._dataSetViewerModel.containerIdContent);
$container.empty(); $container.empty();
// Path
$container.append($("<legend>").append("Path: " + parentPath));
var $filesContainer = $("<div>"); var $filesContainer = $("<div>");
// Toolbar // Toolbar
...@@ -258,6 +255,10 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) { ...@@ -258,6 +255,10 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) {
$container.empty(); $container.empty();
var _this = this; var _this = this;
// Path
var parentPath = this._dataSetViewerModel.lastUsedPath[this._dataSetViewerModel.lastUsedPath.length - 1];
$container.append($("<legend>").append("Path: " + parentPath));
// //
// Simple Files Table // Simple Files Table
// //
...@@ -280,7 +281,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) { ...@@ -280,7 +281,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) {
_this.repaintFiles(code, files.result); _this.repaintFiles(code, files.result);
}; };
_this.updateDirectoryView(datasetCode, parent, repaintEvent); _this.updateDirectoryView(datasetCode, parent, false, repaintEvent);
event.stopPropagation(); event.stopPropagation();
}); });
...@@ -327,7 +328,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) { ...@@ -327,7 +328,7 @@ function DataSetViewerView(dataSetViewerController, dataSetViewerModel) {
_this.repaintFiles(code, files.result); _this.repaintFiles(code, files.result);
}; };
_this.updateDirectoryView(datasetCode, pathInDataSet, repaintEvent); _this.updateDirectoryView(datasetCode, pathInDataSet, false, repaintEvent);
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment