This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// \META-INF\resources\util\control\FileLocationControl.js | |
if (!sLocationType || (sLocationType === "0")) { | |
// Create Embedded link control(commands: DownLoad and UpLoad) and add in HBox | |
oInstance.LocationType="2"; | |
oConstraint.getCommandsDefinition = undefined; // for create link without command, should be restored | |
oInstance.Location=window.location.origin+"/powerdesigner-web/EmbeddedFileServlet?id="+oInstance.RepositoryId; | |
oEditLink = util.ControlFactory.createLinkControl(oInstance, oFeature, bEditable, oPropertyDefinition, false, true); | |
oConstraint.getCommandsDefinition = oCommand; // Restore commandDefinition | |
if (bEditable) { | |
oEditLink.getContent().setWidth("100%"); |