菜单选中图标功能修复,根菜单修改图标

This commit is contained in:
chiguangxu
2018-04-16 17:54:20 +08:00
parent da99177036
commit 450a5bd7e7
5 changed files with 2742 additions and 356 deletions

View File

@@ -23,7 +23,7 @@
href="javascript:;" class="nav-link nav-toggle">
</c:if>
<i class="${secondMenu.icon }"></i>
<i class="fa fa-${secondMenu.icon }"></i>
<span class="title">
<%-- ${secondMenu.name } --%> <spring:message code="${secondMenu.code}"></spring:message></span>
<c:if test="${not empty secondMenu.children }" var="secondClid">

View File

@@ -7,7 +7,8 @@
<input id="${id}" name="${name}" type="hidden" value="${value}"/><a id="${id}Button" href="javascript:" class="btn"><spring:message code='select'/></a>&nbsp;&nbsp;
<script type="text/javascript">
$("#${id}Button").click(function(){
top.$.jBox.open("iframe:${ctx}/tag/iconselect?value="+$("#${id}").val(), "<spring:message code='select_icon'/>", 700, $(top.document).height()-180, {
top.$.jBox.open("iframe:${ctx}/tag/iconselect?value="+$("#${id}").val(), "<spring:message code='select_icon'/>", 1200, $(top.document).height()-180, {
top:'8%',
buttons:{"<spring:message code='ok'/>":"ok", "<spring:message code='clear'/>":"clear", "<spring:message code='close'/>":true}, submit:function(v, h, f){
if (v=="ok"){
var icon = h.find("iframe")[0].contentWindow.$("#icon").val();

View File

@@ -231,7 +231,7 @@ window.onresize=function(){
</c:if>
<li>
<a href="javascript:;" id="${secondMenu.id}">
<i class="fa ${secondMenu.icon }"></i>&nbsp;
<i class="fa fa-${secondMenu.icon }"></i>&nbsp;
<%-- ${secondMenu.name } --%><spring:message code="${secondMenu.code}"></spring:message>
</a>
</li>

File diff suppressed because it is too large Load Diff

View File

@@ -1405,6 +1405,10 @@ Font Awesome 4.x Demo
color: #333; }
.fa-item:hover {
cursor: pointer;
background: #eee; }
.fa-item.active {
cursor: pointer;
background: #eee; }
/***