thecodeholic / lobipanel

jQuery plugin for bootstrap panels. It extends panels with several common and useful functions.
MIT License
168 stars 75 forks source link

Events are not working #27

Closed ghost closed 8 years ago

ghost commented 8 years ago

I copy all these $('.lobipanel').on('init.lobiPanel', function(ev, lobiPanel){ window.console.log("init event called"); }); $('.lobipanel').on('beforeUnpin.lobiPanel', function(ev, lobiPanel){ window.console.log("Before unpin", lobiPanel); }); $('.lobipanel').on('onSmallSize.lobiPanel', function(ev, lobiPanel){ window.console.log("On small size", ev, lobiPanel); }); $('.lobipanel').on('loaded.lobiPanel', function(ev, lobiPanel, result, status, xhr){ window.console.log("Loaded", ev, lobiPanel, result, status, xhr); });

but i don't see anything console logs

thecodeholic commented 8 years ago

Make sure that you call this code after lobipanel is initialized. I have tested and it works.

ghost commented 8 years ago

Oh sorry, I chose wrong selector.