Commit da29eef1 by farax

tttt

parent a329ccb8
**/*.iml **/*.iml
**/*.log
**/.ivy **/.ivy
**/.classpath **/.classpath
**/.project **/.project
......
dependencies { 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.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.portal.impl", version: "2.14.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0" compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
......
...@@ -54,9 +54,24 @@ ...@@ -54,9 +54,24 @@
subFolderPDF = (Folder) folderAndFileEntryAndFileShortcut; subFolderPDF = (Folder) folderAndFileEntryAndFileShortcut;
%> %>
<div class="text-justify"> <div class="text-justify">
<a href=""> <ul id="my-menu">
<%= subFolderPDF.getName() %> <li><a href=""><%= subFolderPDF.getName() %></a>
</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> </div>
...@@ -160,9 +175,27 @@ ...@@ -160,9 +175,27 @@
%> %>
<div> --%> <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"> <aui:script use="aui-carousel,aui-image-viewer">
......
...@@ -1357,7 +1357,13 @@ body.oldDesign{ ...@@ -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