Skip to content

Commit

Permalink
Merge pull request #29 from dotkernel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
n3vrax authored Jun 1, 2017
2 parents 6ffe0db + a7b9215 commit bb1597b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 0.4.1 - 2017-06-01

### Changed
* Nothing

### Added
* Nothing

### Deprecated
* Nothing

### Removed
* Nothing

### Fixed
* admin side menu glitches described in issue [#24](https://github.com/dotkernel/admin/issues/24)


## 0.4.0 - 2017-05-27

### Changed
Expand Down
3 changes: 2 additions & 1 deletion public/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ $(document).ready(function() {
});

// on small devices click on menu item will not open the left sidebar
$(".sideRightIn i, .sideRightIn .submenu").click(function (e) {
$(".sideRightIn .submenu").click(function (e) {
e.preventDefault();

if ($(window).width() > 767) {
$(".main-content").addClass("toggled");
$("#sidebar-collapse").addClass("sideRightOut").removeClass("sideRightIn");
Expand Down
4 changes: 2 additions & 2 deletions src/App/templates/partial/menu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
{% endif %}
{% else %}
{% if depth == 0 %}
<i class="{{ page.getOption('icon') }} master-tooltip" title="{{ page.getOption('label') }}"></i>
<a class="master-tooltip clearfix" href="{{ navigation.getHref(page) }}" {% autoescape false %}{{ pageAttributes(page) ~ extraAttributes }}{% endautoescape %} title="{{ page.getOption('label') }}">
<i class="{{ page.getOption('icon') }} master-tooltip" title="{{ page.getOption('label') }}"></i>
<div class="item-label">{{ page.getOption('label') }}</div>
</a>
{% else %}
<i class="{{ page.getOption('icon') }}"></i>
<a class="clearfix" href="{{ navigation.getHref(page) }}" {% autoescape false %}{{ pageAttributes(page) ~ extraAttributes }}{% endautoescape %} >
<i class="{{ page.getOption('icon') }}"></i>
{{ page.getOption('label') }}
</a>
{% endif %}
Expand Down

0 comments on commit bb1597b

Please sign in to comment.