Skip to content
Snippets Groups Projects
Commit cce2b4c7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

opening window with stub list of publications

parent 0ee093cb
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -4,6 +4,7 @@
var Panel = require('./Panel');
var PanelControlElementType = require('./PanelControlElementType');
var PublicationListDialog = require('./PublicationListDialog');
var logger = require('../logger');
var Functions = require('../Functions');
......@@ -78,7 +79,7 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function() {
dataTab.appendChild(self.createTableRow([ projectDescriptionLabel, projectDescriptionText ]));
var projectPublicationsLabel = Functions.createElement({
type : "label",
type : "div",
content : "Publications:"
});
......@@ -86,9 +87,8 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function() {
type : "div"
});
var projectPublicationsText = Functions.createElement({
type : "div",
style : "width:100%",
name : "projectPublicationsText"
type : "label",
name : "projectPublicationsText",
});
this.setControlElement(PanelControlElementType.INFO_PROJECT_PUBLICATIONS_TEXT, projectPublicationsText);
......@@ -114,6 +114,17 @@ ProjectInfoPanel.prototype._createInfoPanelGui = function() {
});
this.setControlElement(PanelControlElementType.INFO_PROJECT_GET_ORIGINAL_FILE_BUTTON, projectOriginalFileButton);
dataTab.appendChild(self.createTableRow([ projectOriginalFileLabel, projectOriginalFileButton ]));
var dialogDiv = Functions.createElement({
type : "div",
});
this.publicationListDialog = new PublicationListDialog({
customMap: self.getMap(),
element: dialogDiv,
});
};
ProjectInfoPanel.prototype._createInfoPanelLogic = function() {
......@@ -138,7 +149,7 @@ ProjectInfoPanel.prototype.downloadSourceFile = function() {
};
ProjectInfoPanel.prototype.showPublicationListDialog = function() {
throw new Error("Not implemented");
return this.publicationListDialog.show();
};
ProjectInfoPanel.prototype.refresh = function() {
......
......@@ -20,6 +20,10 @@ function PublicationListDialog(params) {
PublicationListDialog.prototype = Object.create(AbstractGuiElement.prototype);
PublicationListDialog.prototype.constructor = PublicationListDialog;
PublicationListDialog.prototype.show = function() {
var self = this;
$(self.getElement()).dialog("open");
};
PublicationListDialog.prototype.destroy = function() {
$(this.getElement()).dialog("destroy");
......
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