Skip to content

Javascript passes bootbox while waiting on confirmation #50

@Yohn

Description

@Yohn

heres a fiddle I made quickly to show the bug - http://jsfiddle.net/yohn/XSKYU/1/

whats happening is i when I click on the "Remove" button a javascript alert pops up saying undefinded instead of waiting for the results from the bootbox confirm popup. I understand how the callback function works, but as you can see in the fiddle I have 2 choices to make, and if the remove is clicked thats when I needed the confirmation box to stall the script until the user selects what they wanted to do, and then process to the ajax call or not, depending what they picked..

I just didnt want to have 2 ajax call within the same process, but i may have to do that anyways unless i figure out a way to have javascript wait..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions