Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    remove confirmnation message on clicking on delete Action

    Modules
    2
    2
    288
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yousuf last edited by

      Admin> customer> review> remove confirmnation message on clicking on edit Action

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @yousuf

        There is a view called table.blade.php inside datagrid folder of UI package's view, you need to override this view in your package.
        In this view file, you can find a function name called doAction. Replace this functions code with below code.

        doAction: function(e) {
                                var element = e.currentTarget;
        
                                axios.post(element.getAttribute('data-action'), {
                                    _token : element.getAttribute('data-token'),
                                    _method : element.getAttribute('data-method')
                                }).then(function(response) {
                                    this.result = response;
                                    location.reload();
                                }).catch(function (error) {
                                    location.reload();
                                });
        
                                e.preventDefault();
                            },
        

        you can see this one for overriding view - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post