app/assets/javascripts/admin/actions.js in camaleon_cms-1.0.7 vs app/assets/javascripts/admin/actions.js in camaleon_cms-1.0.8

- old
+ new

@@ -78,6 +78,16 @@ for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; -/* EOF NEW OBJECT(GET SIZE OF ARRAY) */ +/* EOF NEW OBJECT(GET SIZE OF ARRAY) */ + +// this is a fix for multiples modals when a modal was closed (reactivate scroll for next modal) +function modal_fix_multiple(){ + var activeModal = $('.modal.in:last', 'body').data('bs.modal'); + if (activeModal) { + activeModal.$body.addClass('modal-open'); + activeModal.enforceFocus(); + activeModal.handleUpdate(); + } +} \ No newline at end of file