Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin panel treeview #37

Closed
belguinan opened this issue Apr 12, 2018 · 2 comments
Closed

Admin panel treeview #37

belguinan opened this issue Apr 12, 2018 · 2 comments

Comments

@belguinan
Copy link
Contributor

Hello,
After installing laracom i found that the admin left bar can't open the submenu
even if i try to click on ".treeview"

Should i hardcode it again ? or it's a bug?

@jsdecena
Copy link
Owner

it's working. please ensure you clone the package, run npm install and npm run dev to properly compile the assets. You should also have the latest npm and node. I suggest use NVM https://github.com/creationix/nvm

@belguinan
Copy link
Contributor Author

Hello, No it doesnt work, i did all the steps on the documentation and nothing,
I added this code into my js file.

$('body').on('click', '.treeview a', function(e){
var link = $(this);

if( link.attr('href') == '#' )
{
    var nextMenu = link.next('.treeview-menu')

    if( nextMenu.length )
    {
        nextMenu.slideToggle()
    }
}

})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants