diff --git a/WebContent/WEB-INF/jsp/viewEdit.jsp b/WebContent/WEB-INF/jsp/viewEdit.jsp index f0b3d00979..e35b9bc703 100644 --- a/WebContent/WEB-INF/jsp/viewEdit.jsp +++ b/WebContent/WEB-INF/jsp/viewEdit.jsp @@ -187,16 +187,26 @@ function moveUpComponent(viewComponentId) { var div = $("c" + viewComponentId); - div.style.zIndex = Number(div.style.zIndex) + 1; + if(div.style.zIndex < 99) { + div.style.zIndex = Number(div.style.zIndex) + 1; + } ViewDwr.setViewComponentZIndex(div.viewComponentId, Number(div.style.zIndex)); + updateZIndexLabel(viewComponentId, div.style.zIndex); } function moveDownComponent(viewComponentId) { var div = $("c" + viewComponentId); - if(div.style.zIndex > 0) { + if(div.style.zIndex > 1) { div.style.zIndex = div.style.zIndex - 1; } ViewDwr.setViewComponentZIndex(div.viewComponentId, Number(div.style.zIndex)); + updateZIndexLabel(viewComponentId, div.style.zIndex); + } + + function updateZIndexLabel(viewComponentId, value) { + var spanIndex = document.getElementById("c" + viewComponentId + "zindex"); + spanIndex.parentNode.parentNode.style.display = "initial"; + spanIndex.innerText = Number(value); } function positionEditor(compId, editorId) { @@ -384,6 +394,12 @@ } + function revealPointControls(viewComponentId) { + showLayer("c" + viewComponentId + "Controls"); + var div = $("c" + viewComponentId); + updateZIndexLabel(viewComponentId, div.style.zIndex); + } + function deleteConfirm(){ if(document.getElementById("deleteCheckbox").checked) { document.getElementById("deleteButton").style.visibility = 'visible'; @@ -564,7 +580,7 @@ - - - - - -