$(function () {

    // Initialize prompt buttons.
    $('[data-toggle="prompt"]').click(function (e) {

        e.preventDefault();

        bootbox.prompt($(this).data('message'), function (result) {

            var match = $(e.target).data('match') || 'yes';

            if (result === match) {
                $(e.target).unbind('click')[0].click();
            } else if (typeof result == 'string') {
                $('.bootbox.modal')
                    .find('.modal-dialog')
                    .addClass('animated shake');

                setTimeout(function () {
                    $('.bootbox.modal')
                        .find('.modal-dialog')
                        .removeClass('shake')
                        .removeClass('animated')
                }, 1000);

                return false;
            }
        });
    });
});

@@ -139,128 +139,150 @@
     
-bootbox.prompt($(this).data('message'), function (result) %7B%0A%0A            var match = $(e.target).data('match') %7C%7C 'yes';
+var match = $(e.target).data('match') %7C%7C 'yes';%0A%0A        bootbox.prompt($(this).data('message').replace(':match:', match), function (result) %7B
 %0A%0A  

Fix issue where matcher was not being replaced correctly