diff --git a/frontend-js/src/main/js/gui/admin/AddProjectDialog.js b/frontend-js/src/main/js/gui/admin/AddProjectDialog.js index ae8c7a8a353913ed03aefaca84e44f26157968d3..d83af35db325e8f40234b1558b6f03d9faf1d636 100644 --- a/frontend-js/src/main/js/gui/admin/AddProjectDialog.js +++ b/frontend-js/src/main/js/gui/admin/AddProjectDialog.js @@ -254,7 +254,7 @@ AddProjectDialog.prototype.createGeneralTabContent = function () { inputName: "project-annotate-automatically", elements: [showAnnotatorsButton], help: 'If this checkbox is checked, elements of the uploaded map will be automatically annotated using built in ' + - 'annotators. Behavior of the annotators can be configured by clicking the Advanced button.' + 'annotators. Behavior of the annotators can be configured by clicking the Advanced button.' })); table.appendChild(self.createCheckboxRow({ labelName: "Verify manual annotations:", @@ -262,29 +262,29 @@ AddProjectDialog.prototype.createGeneralTabContent = function () { inputName: "project-verify-annotations", elements: [showValidatorsButton], help: 'If this checkbox is checked, elements and interactions of the uploaded map will be scanned for existing ' + - 'annotations; if present these existing annotations will be validated against a set of rules. Verification rules ' + - 'can be configured by clicking the Advanced button.' + 'annotations; if present these existing annotations will be validated against a set of rules. Verification rules ' + + 'can be configured by clicking the Advanced button.' })); table.appendChild(self.createCheckboxRow({ labelName: "Cache data:", defaultValue: false, inputName: "project-cache-data", help: 'If this checkbox is checked, all hyperlinks in the project resolved by MIRIAM repository (e.g. cross-links ' + - 'to external bioinformatics databases) are resolved and cached.' + 'to external bioinformatics databases) are resolved and cached.' })); table.appendChild(self.createCheckboxRow({ labelName: "Auto margin:", defaultValue: true, inputName: "project-auto-margin", help: 'If this checkbox is checked, upon generation of the graphics, empty spaces surrounding elements and ' + - 'interactions will be cropped.' + 'interactions will be cropped.' })); table.appendChild(self.createCheckboxRow({ labelName: "Display as SBGN:", defaultValue: false, inputName: "project-sbgn-visualization", help: 'If this checkbox is checked, the uploaded model will be displayed in SBGN format, instead of default ' + - 'CellDesigner format.' + 'CellDesigner format.' })); table.appendChild(self.createCheckboxRow({ labelName: "Custom semantic zooming:", @@ -299,6 +299,15 @@ AddProjectDialog.prototype.createGeneralTabContent = function () { help: "Check this checkbox to display each semantic zoom level in the General Overlays" })); + $("[name='project-semantic-zooming']", table).change(function () { + var disable = !$("[name='project-semantic-zooming']", table).is(":checked"); + $("[name='project-semantic-zooming-contains-multiple-overlays']", table).prop("disabled", disable); + if (disable) { + $("[name='project-semantic-zooming-contains-multiple-overlays']", table).prop("checked", false); + } + }); + $("[name='project-semantic-zooming-contains-multiple-overlays']", table).prop("disabled", !$("[name='project-semantic-zooming']", table).is(":checked")); + var saveProjectButton = Functions.createElement({ type: "button", name: "saveProject",