v1.18.x
barisusakli 9 years ago
parent 478faac945
commit dffb57ba14

@ -33,6 +33,7 @@ define('admin/general/navigation', ['translator', 'iconSelect'], function(transl
var index = iconEl.parents('[data-index]').attr('data-index'); var index = iconEl.parents('[data-index]').attr('data-index');
$('#active-navigation [data-index="' + index + '"] i').attr('class', 'fa fa-fw ' + newIconClass); $('#active-navigation [data-index="' + index + '"] i').attr('class', 'fa fa-fw ' + newIconClass);
iconEl.siblings('[name="iconClass"]').val(newIconClass); iconEl.siblings('[name="iconClass"]').val(newIconClass);
iconEl.siblings('.change-icon-link').toggleClass('hidden', !!newIconClass);
}); });
}); });

@ -5,9 +5,8 @@
<!-- BEGIN navigation --> <!-- BEGIN navigation -->
<li data-index="{navigation.index}" class="{navigation.class} <!-- IF navigation.selected --> active <!-- ENDIF navigation.selected -->"> <li data-index="{navigation.index}" class="{navigation.class} <!-- IF navigation.selected --> active <!-- ENDIF navigation.selected -->">
<a href="#" title="{navigation.route}" id="{navigation.id}"> <a href="#" title="{navigation.route}" id="{navigation.id}">
<!-- IF navigation.iconClass -->
<i class="fa fa-fw {navigation.iconClass}"></i> <i class="fa fa-fw <!-- IF navigation.iconClass -->{navigation.iconClass}<!-- ENDIF navigation.iconClass -->"></i>
<!-- ENDIF navigation.iconClass -->
<!-- IF navigation.text --> <!-- IF navigation.text -->
<span class="{navigation.textClass}">{navigation.text}</span> <span class="{navigation.textClass}">{navigation.text}</span>
@ -31,6 +30,7 @@
<label>Icon:</label> <label>Icon:</label>
<br/> <br/>
<span class="iconPicker"><i class="fa fa-2x {enabled.iconClass}"></i> <span class="iconPicker"><i class="fa fa-2x {enabled.iconClass}"></i>
<a class="change-icon-link <!-- IF enabled.iconClass -->hidden<!-- ENDIF enabled.iconClass -->" href="#">change</a>
<input class="form-control" type="hidden" name="iconClass" value="{enabled.iconClass}" /> <input class="form-control" type="hidden" name="iconClass" value="{enabled.iconClass}" />
</span> </span>
</div> </div>

Loading…
Cancel
Save