From 9c76edac62e03f997ccdc4d32304d7bfbefa6d22 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 17 Nov 2014 12:10:37 +0000 Subject: [PATCH] SSDM-1071 : PAPER - Empty Trashcan SVN: 32840 --- .../js/views/TrashManager/TrashManagerController.js | 2 +- .../html/js/views/TrashManager/TrashManagerModel.js | 2 +- .../html/js/views/TrashManager/TrashManagerView.js | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerController.js index 5b2108166ca..64a7af7ba95 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerController.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerController.js @@ -23,7 +23,7 @@ function TrashManagerController(mainController) { var _this = this; mainController.serverFacade.listDeletions(function(data) { if(data.result && data.result.length > 0) { - //Fill Model + _this._trashManagerModel.deletions = data.result; } _this._trashManagerView.repaint($container); }); diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerModel.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerModel.js index d43ebb78587..994aaaa2ec3 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerModel.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerModel.js @@ -15,5 +15,5 @@ */ function TrashManagerModel() { - + this.deletions = null; } \ No newline at end of file diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerView.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerView.js index eaf33f64353..5072e9f855c 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerView.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/TrashManager/TrashManagerView.js @@ -20,6 +20,17 @@ function TrashManagerView(trashManagerController, trashManagerModel) { this.repaint = function($container) { $container.empty(); - $container.append("Hello Trashcan!"); + + var $containerColumn = $("<form>", { + "class" : FormUtil.formColumClass + " form-horizontal", + 'role' : "form", + "action" : "javascript:void(0);", + "onsubmit" : "" + }); + + var $trashIcon = $("<span>", { 'class' : 'glyphicon glyphicon-trash'}); + $containerColumn.append($("<h2>").append($trashIcon).append(" Trashcan")); + + $container.append($containerColumn); } } \ No newline at end of file -- GitLab