thecodeholic / lobipanel

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

Don't remove DOM content on close event #41

Open aline-matos opened 7 years ago

aline-matos commented 7 years ago

It's possible to get the content before closing to load the same content after?

$('.panel-move').on('beforeClose.lobiPanel', function(ev, lobiPanel){ var instance = $('.panel-move').data('lobiPanel'); console.log(ev.preventDefault); console.log(ev.stopPropagation); console.log(instance); return; });

I'm trying to get the instance and prevent to remove the DOM content from page before close, but this doesn't work :(