From acf79c74c800b2dce34282b9b80c35788ac0238c Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 20 Apr 2015 11:29:17 +0000 Subject: [PATCH] SSDM-1727: Show vocabularies viewer subtitle. SVN: 33886 --- .../views/VocabularyManager/VocabularyManagerView.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/VocabularyManager/VocabularyManagerView.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/VocabularyManager/VocabularyManagerView.js index c11a40f590a..4369b9f5daf 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/VocabularyManager/VocabularyManagerView.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/VocabularyManager/VocabularyManagerView.js @@ -18,7 +18,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod this._vocabularyManagerController = vocabularyManagerController; this._vocabularyManagerModel = vocabularyManagerModel; this._dataGridContainer = $("<div>"); - + this._subtitle = $("<legend>"); + this.repaint = function($container) { $container.empty(); @@ -32,7 +33,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod "onsubmit" : "" }); - $containerColumn.append($("<h1>").append(" Vocabulary Viewer")); + $containerColumn.append($("<h1>").append("Vocabulary Viewer")); + $containerColumn.append(this._subtitle); this._showVocabularies(); $containerColumn.append(this._dataGridContainer); $container.append($containerColumn); @@ -71,7 +73,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod var dataGrid = new DataGridController(null, columns, getDataList, rowClick, true, "VOCABULARY_TABLE"); dataGrid.init(this._dataGridContainer); - this._dataGridContainer.prepend($("<legend>").append(" Vocabularies")); + this._subtitle.empty(); + this._subtitle.append("Vocabularies List"); } this._showVocabulary = function(vocabulary) { @@ -106,6 +109,7 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod var dataGrid = new DataGridController(null, columns, getDataList, null, true, "VOCABULARY_TERMS_TABLE"); dataGrid.init(this._dataGridContainer); - this._dataGridContainer.prepend($("<legend>").append(" Terms from vocabulary " + vocabulary.code)); + this._subtitle.empty(); + this._subtitle.append("Terms from vocabulary " + vocabulary.code); } } \ No newline at end of file -- GitLab