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

Doesn't work on remove action #7

Open
giovapanasiti opened this issue Dec 28, 2016 · 1 comment
Open

Doesn't work on remove action #7

giovapanasiti opened this issue Dec 28, 2016 · 1 comment

Comments

@giovapanasiti
Copy link

giovapanasiti commented Dec 28, 2016

I have this block of code:

  'click .removeCategory':function(evt, tmpl){
    new Confirmation({
      message: "xxxxxx",
      title: "are u sure?",
      cancelText: "Cancel",
      okText: "Si",
      success: false, // whether the button should be green or red
      focus: "cancel" // which button to autofocus, "cancel" (default) or "ok", or "none"
    }, function (evt, tmpl) {
      Meteor.call('Category.remove', this._id);
    });
  }

the popup shows up correctly but then even on confirmation it doesnt remove the entry

@mathieudutour
Copy link
Owner

Can you add a console.log in the callback to see if it's called?

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

2 participants