cornernote / yii-menu-module

Interface to manage menus and code-generation to deploy them into your application.

Home Page:http://cornernote.github.io/yii-menu-module/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module seems to support only path urlFormat.

rlucian opened this issue · comments

commented

I haven't tested if it actually works with
'urlFormat'=>'path',
but when setting 'urlFormat'=>'get' in main.php config file,
the app is stuck at the "spin" animation, after going to ?r=menu

i tracked this down to an error in loading /menu/item/fetchTree, which seems to be a path created through js, so I couldn't come up with a fix.

Hey, thanks for pointing this out. I always run in path format, but I can confirm you are right, get format breaks it.

The problem stems from jstree.behavior.js that came from yii-jstree-behavior - https://github.com/drumaddict/yii-jstree-behavior

Here is one such line that is causing the issue:
https://github.com/cornernote/yii-menu-module/blob/master/menu/assets/js/jstree.behavior.js#L49

For now you can manually change it, but in the next release of yii-email-module I will implement a solution.