Page 1 of 1

toggleLeftMenu function double call

Posted: 10 Oct 2016, 09:27
by mismanc
I was using layout.js that starts with
var Sentinel = {}
but I start getting errors like
--------------------------------------------------
Widget not available: Sentinel (10:16:59:503)
at http://localhost:8080/javax.faces.resou ... es&v=6.0:1
Widget not available: Sentinel (10:16:59:568)
at http://localhost:8080/javax.faces.resou ... es&v=6.0:1
Widget for var 'widget_menuform_sm_leftmenu' not available! (10:17:08:031)
at http://localhost:8080/javax.faces.resou ... es&v=6.0:1
Uncaught TypeError: Cannot read property 'toggleSubMenu' of undefined (10:17:08:038 | error, javascript)
at src/main/webapp/index.xhtml:517
---------------------------------------------------
then I've downloaded the sentinel theme again. I updated layout.js (starts with PrimeFaces.widget.Sentinel). Errors have gone. But when I click "layout-menubar-resize" item, call twice its click function

$('#layout-menubar-resize').on('click', function(e) {...........}

Thanks in advance!

Re: toggleLeftMenu function double call

Posted: 23 Mar 2017, 12:42
by mert.sincan
I couldn't replicate this issue. Please try last Sentinel version.