jquery - Bootstrap popup does not wait for user's answer -


i have following javascript function called when clicking save button. here of code:

   function savechanges() {     if (presavevalidation()) {         // confirm user special case option c         if ($(".editable-unsaved[data-value='c']").length > 0) {             $("#confirmexplicitlydefinedpercentages").modal("show");         } else {             savenextmonth = false;         }         // save modified rows in selected month         var rowstosave = [];         var rowtypes = []; 

the problem call modal("show") on bootstrap div not display popup. popup supposed wait user set value variable savenextmonth. rest of code uses variable save data (not shown).

the popup seems appear (i think it's z-index problem because see flicker appearing , disappearing). , rest of code gets executed without waiting popup answer, not want.

at first thought html , how defined div when make lonely call modal("show"), pops it's not that.

can explain why popup not appear , why code not wait?

the twitter bootstrap modal popup not wait user on line call modal() method. popup appears , disappears , execution continues when write code in way shown above.

what did remove modal() call savechanges() function , placed in own function, , have 1 of buttons modal popup call savechanges() function.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -