Page 1 of 1

jQuery Menus where inaccessible options are not shown

Posted: Tue Dec 22, 2009 2:36 pm
by joel
The attached patch replaces the proprietary milonic navbar menu with jquery superfish 1.4.8 based menus (http://users.tpg.com.au/j_birch/plugins/superfish/)

These menu options DO NOT appear if the user doesn't have privileges to access the functionality in question. This seems far more user friendly to me.

Re: jQuery Menus where inaccessible options are not shown

Posted: Tue Dec 22, 2009 4:28 pm
by shaunw
These menu options DO NOT appear if the user doesn't have privileges to access the functionality in question. This seems far more user friendly to me.
Thanks for your contribution, however I'm confused by that statement.

The existing menu system does not allow access to functionality that users do not have permissions too. In some cases if the same web browser is used to switch between users with different permissions then the cache may need to be cleared for the menu to be updated, but even so the user cannot access areas of TimeTrex that they don't have permission to.

Could you please explain in more detail what your goal was when creating this patch.

Re: jQuery Menus where inaccessible options are not shown

Posted: Tue Dec 22, 2009 4:48 pm
by joel
At least on my install, the menu item is available, but when you click it, the page comes up "Access Denied" or something like that. I figure why even give the user to click something they can't do?

Re: jQuery Menus where inaccessible options are not shown

Posted: Tue Dec 22, 2009 5:39 pm
by shaunw
Yeah, that has nothing to do with the menu system, its the browsers cache.

Next time menu items appear that shouldn't, hold in the SHIFT key while pressing refresh/reload and they should immediately disappear.

TimeTrex used to be a little too aggressive in its caching, but this will be relaxed slightly in upcoming versions to hopefully reduce how often the above issues appears.

Re: jQuery Menus where inaccessible options are not shown

Posted: Wed Dec 23, 2009 7:07 am
by joel
That's great news Shaun. I presume there is little interest in changing, but the fade in / fade out's in the jquery superfish menu look a bit nicer and its not proprietary menuing code. Anyway, just wanted to post in case folks are interested in it.

Re: jQuery Menus where inaccessible options are not shown

Posted: Tue Jan 05, 2010 8:21 am
by joel
By the way, the code for this can be found here:

http://github.com/joelwreed/TimeTrex/tree/superfish