Skip to content

Commit c07304c

Browse files
author
Nathan McMinn
committed
Final sets of changes to enable new Share UI
1 parent 90ccbd6 commit c07304c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pdf-toolkit-share/src/main/resources/META-INF/pdftoolkit/components/doclib/pdftoolkit-doclib-actions.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,18 @@ PDFToolkit.Util = {};
225225
{
226226
for(fieldIndex in fields)
227227
{
228-
var fieldId = YAHOO.util.Dom.get(that.options.htmlId) + "_" + fields[fieldIndex] + "-cntrl";
229-
fieldId.style.display = 'block';
228+
var field = YAHOO.util.Dom.get(that.options.htmlId + "_" + fields[fieldIndex]);
229+
var container = field.parentElement;
230+
container.style.display = 'block';
230231
}
231232
}
232233
else
233234
{
234235
for(fieldIndex in fields)
235236
{
236-
var fieldId = YAHOO.util.Dom.get(that.options.htmlId) + "_" + fields[fieldIndex] + "-cntrl";
237-
fieldId.style.display = 'none';
237+
var field = YAHOO.util.Dom.get(that.options.htmlId + "_" + fields[fieldIndex]);
238+
var container = field.parentElement;
239+
container.style.display = 'none';
238240
}
239241
}
240242
}

pdf-toolkit-share/src/main/resources/META-INF/share-config-custom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@
388388
<control-param name="hideProperties">assoc_destination-folder</control-param>
389389
</control>
390390
</field>
391+
<field id="visibility">
392+
<control template="/org/alfresco/pdftoolkit/components/form/controls/dependentSelect.ftl">
393+
<control-param name="showSelectValues">visible:prop_page,prop_position,prop_location-x,prop_location-y,prop_width,prop_height</control-param>
394+
</control>
395+
</field>
391396
<field id="page">
392397
<control template="/org/alfresco/pdftoolkit/components/form/controls/selectPage.ftl" >
393398
<control-param name="showPageScheme">false</control-param>

0 commit comments

Comments
 (0)