bootstrap-modal icon indicating copy to clipboard operation
bootstrap-modal copied to clipboard

modalmanager('loading') can be clicked out of

Open karabijavad opened this issue 12 years ago • 7 comments
trafficstars

is it possible to prevent clicking on the body from closing the 'loading' modalmanager? if so, is it then also possible to programmatically close the 'loading' modalmanager?

karabijavad avatar Oct 04 '13 20:10 karabijavad

+1, I0m also struggling with the same problems

ruifigueira avatar Oct 12 '13 01:10 ruifigueira

See this issue: https://github.com/jschr/bootstrap-modal/issues/41

Right now there's no good way to do it but will look at fixing that for a future version.

You can also toggle the loading state of the manager with $('body').modalmanage('loading');

jschr avatar Oct 12 '13 12:10 jschr

same problem here. any work-around?

philgin avatar Dec 08 '13 14:12 philgin

@philgin maybe finding the element which is being clicked on, then doing "element.preventDefault" ? i dont think i actually ever got around it

karabijavad avatar Dec 08 '13 19:12 karabijavad

The following works for me:

$('body').modalmanager('loading').find('.modal-scrollable').off('click.modalmanager');

karol-wojcik avatar Dec 17 '14 08:12 karol-wojcik

@karol-wojcik :+1:

prash-singla avatar Feb 24 '16 05:02 prash-singla

@karol-wojcik Works for me too.

joaoberte avatar Sep 18 '17 19:09 joaoberte