Commit b7edf3bd authored by Piotr Gawron's avatar Piotr Gawron
Browse files

checkbox update does not rtefresh the whole windows

parent 06ebf63e
Pipeline #40773 passed with stage
in 23 minutes and 47 seconds
......@@ -12,6 +12,7 @@ minerva (16.0.0~alpha.2) stable; urgency=medium
* Small improvement: search results are group by diagram (#1451)
* Small improvement: "Failed to fetch" errors are reported in a way that suggest
retrying before submitting error report (#738)
* Small improvement: reverse search pop-up reorganized (#1366)
* Bug fix: arrows without a "process" box had an irregular empty space in
their lines (#1471)
* Bug fix: when selecting drug in the alias window the input text is updated
......
"use strict";
var $ = require('jquery');
var Promise = require("bluebird");
var logger = require('../../logger');
......@@ -468,7 +469,19 @@ AbstractInfoWindow.prototype._createTargetInfoDiv = function (params) {
checkbox.type = "checkbox";
checkbox.checked = self.isOverlayFullView(overlay.getName());
checkbox.onclick = function () {
return self.setOverlayFullView(overlay.getName(), this.checked).catch(GuiConnector.alert);
var ie = new IdentifiedElement(self.alias);
result.removeChild(table);
var messageImg = Functions.createElement({
type: "img",
src: 'resources/images/icons/ajax-loader.gif'
});
result.appendChild(messageImg);
return overlay.getDetailDataByIdentifiedElement(ie, this.checked).then(function (data) {
table = self._createTableForTargetDiv(data, overlay);
result.appendChild(table);
}).finally(function () {
result.removeChild(messageImg);
})
};
checkboxDiv.appendChild(checkbox);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment