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

SSDM-1727: Show vocabularies viewer subtitle.

SVN: 33886
parent ebb3ca97
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod ...@@ -18,7 +18,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod
this._vocabularyManagerController = vocabularyManagerController; this._vocabularyManagerController = vocabularyManagerController;
this._vocabularyManagerModel = vocabularyManagerModel; this._vocabularyManagerModel = vocabularyManagerModel;
this._dataGridContainer = $("<div>"); this._dataGridContainer = $("<div>");
this._subtitle = $("<legend>");
this.repaint = function($container) { this.repaint = function($container) {
$container.empty(); $container.empty();
...@@ -32,7 +33,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod ...@@ -32,7 +33,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod
"onsubmit" : "" "onsubmit" : ""
}); });
$containerColumn.append($("<h1>").append(" Vocabulary Viewer")); $containerColumn.append($("<h1>").append("Vocabulary Viewer"));
$containerColumn.append(this._subtitle);
this._showVocabularies(); this._showVocabularies();
$containerColumn.append(this._dataGridContainer); $containerColumn.append(this._dataGridContainer);
$container.append($containerColumn); $container.append($containerColumn);
...@@ -71,7 +73,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod ...@@ -71,7 +73,8 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod
var dataGrid = new DataGridController(null, columns, getDataList, rowClick, true, "VOCABULARY_TABLE"); var dataGrid = new DataGridController(null, columns, getDataList, rowClick, true, "VOCABULARY_TABLE");
dataGrid.init(this._dataGridContainer); dataGrid.init(this._dataGridContainer);
this._dataGridContainer.prepend($("<legend>").append(" Vocabularies")); this._subtitle.empty();
this._subtitle.append("Vocabularies List");
} }
this._showVocabulary = function(vocabulary) { this._showVocabulary = function(vocabulary) {
...@@ -106,6 +109,7 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod ...@@ -106,6 +109,7 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod
var dataGrid = new DataGridController(null, columns, getDataList, null, true, "VOCABULARY_TERMS_TABLE"); var dataGrid = new DataGridController(null, columns, getDataList, null, true, "VOCABULARY_TERMS_TABLE");
dataGrid.init(this._dataGridContainer); 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
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