#1 August 12, 2014 9:48pm

kshiro
Member
Registered: August 12, 2014
Posts: 1

Issues Using BigTreeDialog

I m using BigTreeDialog in main.js .
I try to call it with this

$(".table").on("click",".icon_delete",function() {
        new BigTreeDialog("Delete User",'<p class="confirm">Are you sure you want to delete this user?',
                $.proxy(function() {                 
                           $.ajax("<?=WWW_ROOT?>ajax/delete/", { type: "POST", data: { id: $(this).attr("href").substr(1) } })
                },this),"delete",false,"OK");
       
        return false;
    })
Catch this errors when click OK
20142d78f966-8078-43d5-ad93-1101542f9aa3.jpeg

When i use  it without $.proxy , all work but Dialog not close when click OK .

Any help or advice is appreciated.
Thanks

Offline

#2 August 13, 2014 9:46am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Issues Using BigTreeDialog

The $.proxy allows the dialog to remember the link that was being clicked. Are you using this in a custom page in the admin or are you having trouble deleting users in general? What browser/version?

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.