jimdoescode/jqScribble

Custom save does not work if inside bootbox,Uncaught TypeError:

Closed this issue · 1 comments

Hello,

I was trying to use this inside a bootbox window. I can draw but when I click Custom Save I get and error

Uncaught TypeError: Cannot read properties of undefined (reading 'save')
at save (:4:33)

<a href="javascript:openSigBox()">Open</a>

<script>
function openSigBox() {
        $.ajax({
            url:'example.html',
            type:'get',
            data: {}
        }).done(function(response){
          bootbox.dialog({
            title: "Sign",
            message: response
          });
        });
    }

</script>

Dont worry about this. Instead of using bootbox I switch to a bootstrap modal and it works. I dont think putting stuff iinside bootbox is a good idea.