diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js index 970fb8da80b2ff46de2c154e3419e136a29dbfa6..6df27998336087bf951c1056fbbe127a22da3b30 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js @@ -331,7 +331,7 @@ function SampleFormView(sampleFormController, sampleFormModel) { // GENERATE CHILDREN // if((this._sampleFormModel.mode !== FormMode.VIEW) && this._sampleFormModel.isELNSample) { - var $generateChildrenBtn = $("<a>", { 'class' : 'btn btn-default', 'style' : 'margin-left:25px;', 'id' : 'generate_children'}).text("Generate Children"); + var $generateChildrenBtn = $("<a>", { 'class' : 'btn btn-default', 'style' : 'margin-top:15px;', 'id' : 'generate_children'}).text("Generate Children"); $generateChildrenBtn.click(function(event) { _this._generateChildren(); }); @@ -899,7 +899,7 @@ function SampleFormView(sampleFormController, sampleFormModel) { virtualSample.code = generatedChildrenCodes[i]; virtualSample.identifier = "/" + generatedChildrenSpace + "/" + virtualSample.code; virtualSample.sampleTypeCode = generatedChildrenType; - _this._sampleFormModel.sampleLinksChildren.addSample(virtualSample); + _this._sampleFormModel.sampleLinksChildren.addVirtualSample(virtualSample); } _this._childrenAdded(); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js index e18948ac673dacdf73cd837f8bddcdc7082cc6ad..92ed045446d5947f1b83cd849eb641c928432eb0 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/LinksController.js @@ -118,6 +118,10 @@ function LinksController(title, sampleTypeHints, isDisabled, samplesToEdit, show return true; } + this.addVirtualSample = function(sample) { + linksView.updateSample(sample, true, false); + } + this.addSample = function(sample, isInit) { Util.blockUI(); mainController.serverFacade.searchWithIdentifiers([sample.identifier], function(results) {