Commit da29eef1 by farax

tttt

parent a329ccb8
**/*.iml
**/*.log
**/.ivy
**/.classpath
**/.project
......
dependencies {
compile files("C:/Java/jdk1.8.0_131/lib/tools.jar")
//compile files("C:/Java/jdk1.8.0_131/lib/tools.jar")
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.60.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.impl", version: "2.14.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
......
......@@ -54,9 +54,24 @@
subFolderPDF = (Folder) folderAndFileEntryAndFileShortcut;
%>
<div class="text-justify">
<a href="">
<%= subFolderPDF.getName() %>
</a>
<ul id="my-menu">
<li><a href=""><%= subFolderPDF.getName() %></a>
<ul style="display: none;">
<%
List<FileEntry> fileEntriessss = DLAppServiceUtil.getGroupFileEntries(scopeGroupId, 0, subFolderPDF.getFolderId(), currentMimeTypes, status, -1, -1, orderByComparator);
for (FileEntry entry : fileEntriessss){
FileVersion fileVersion = DLAppServiceUtil.getFileVersion(entry.getFileVersion().getFileVersionId());
%>
<li >
<a href="<%= DLUtil.getDownloadURL(entry, fileVersion, themeDisplay, "") %>"><%= entry.getFileName() %>
</li>
<% } %>
</ul>
</li>
</ul
</div>
......@@ -160,9 +175,27 @@
%>
<div> --%>
<aui:script>
$(document).ready(function() {
$('ul#my-menu ul').each(function(index) {
$(this).prev().addClass('collapsible').click(function() {
if ($(this).next().css('display') == 'none') {
$(this).next().slideDown(200, function () {
$(this).prev().removeClass('collapsed').addClass('expanded');
});
}else {
$(this).next().slideUp(200, function () {
$(this).prev().removeClass('collapsed').addClass('expanded');
$(this).find('ul').each(function() {
$(this).hide().prev().removeClass('expanded').addClass('collapsed');
});
});
}
return false;
});
});
});
</aui:script>
<aui:script use="aui-carousel,aui-image-viewer">
......
......@@ -1357,7 +1357,13 @@ body.oldDesign{
}
#my-menu{
ul>li {
padding-right:15px;
padding-left: 15px;
}
padding-left: 15px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment