*** The wcm.io Project is closing down this JIRA Instance in favor of GitHub issues. ***
Please use the corresponding GitHub projects to report issues - or the mailing list for general discussion.
When there is a linktype dropdown and an related URL input within the page properties the URL input is hidden on first load. Only after selecting the link type (again or another one) the URL input becomes visible.
I fixed this by adding showHide.js (..wcm-io-handler/link/src/main/webapp/app-root/clientlibs/authoring/dialog/js/showHide.js) with following code:
$(document).on("foundation-contentloaded", function(e) {
var linkType = $('input[name*="./linkType"]').val();
var showhideEl = $('.option-linktype-showhide-target---');
if (linkType && showhideEl) {
showHide(linkType, showhideEl);
}
});
$(document).on("click", "coral-tab", function(e) {
$(document).trigger("foundation-contentloaded");
});
function showHide(linkType, showhideEl) {
showhideEl.each(function(index) {
if ($(this).data("showhidetargetvalue") === linkType) {
$(this).removeClass("hide");
}
});
};
When there is a linktype dropdown and an related URL input within the page properties the URL input is hidden on first load.
Only after selecting the link type (again or another one) the URL input becomes visible.
I fixed this by adding showHide.js (..wcm-io-handler/link/src/main/webapp/app-root/clientlibs/authoring/dialog/js/showHide.js) with following code:
$(document).on("foundation-contentloaded", function(e) { var linkType = $('input[name*="./linkType"]').val(); var showhideEl = $('.option-linktype-showhide-target---'); if (linkType && showhideEl) { showHide(linkType, showhideEl); } }); $(document).on("click", "coral-tab", function(e) { $(document).trigger("foundation-contentloaded"); }); function showHide(linkType, showhideEl) { showhideEl.each(function(index) { if ($(this).data("showhidetargetvalue") === linkType) { $(this).removeClass("hide"); } }); };See pull request: https://github.com/wcm-io/wcm-io-handler/pull/22
This is adpated from/ based on https://gist.github.com/rjspiker/003cf9eac1e853bb109a .
Concerns component /apps/wcm-io/handler/link/components/granite/form/linkRefContainer/linkRefContainer.jsp