Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: BootstrapDialog is not defined #379

Open
athirawdstech opened this issue Jun 6, 2018 · 0 comments
Open

Uncaught ReferenceError: BootstrapDialog is not defined #379

athirawdstech opened this issue Jun 6, 2018 · 0 comments

Comments

@athirawdstech
Copy link

(document).on('click','.delete-fvrt',function (){
//$('#ag-prof-remove-job-from-fav-confirmation').modal('show');
var th = $(this);
var dialogInstance4 = new BootstrapDialog.configDefaultOptions({
cssClass: 'for_confirmation for_confirmation1',

});

var dialogInstance5 = new BootstrapDialog.show({
title: 'Confirm',
message: 'Are you sure you want to remove this job from your Favorites?',

    buttons: [{
        label: 'Confirm',
         cssClass: 'for_delete_in_only',
          
        action: function() {
        var url = th.attr('data-url');
        var id = th.attr('data-id');
        $.ajax({
        url : url,
        data :{ 'id' : id },
        type : "POST",
        success: function(response){
        console.log(response);
        $(".favClick").trigger('click');
        }
        });
            dialogInstance5.close();
        }
    }, {
        label: 'Cancel',
        cssClass: 'for_cancel_in_only',
        action: function(dialogRef) {
            dialogRef.close();
        }
    }]
});

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant