beforeRemove not called
Closed this issue · 1 comments
mwaschkowski commented
Hi,
Not sure why this is happening, don't see any errors in the console. I have:
{{> quickRemoveButton beforeRemove=removeConfirm collection="Meteor.users" _id=this._id class="btn btn-danger"}}and the following helper function:
Template.Users.helpers({
data: function() {
return Meteor.users.find();
},
removeConfirm: function() {
return function(collection, id) {
console.log("beforeremove");
var doc = collection.findOne(id);
if (confirm('Really delete user: "' + doc.name + '"?')) {
this.remove();
Router.go('users');
}
};
}
});
but the removeConfirm method is never called and I'm unable to see why its not being called.
Any suggestions?
Thanks,
Mark
mwaschkowski commented
nevermind, there was another confirmation library getting in the way, I had forgotten that I had setup hinas:meteor-bootstrap-confirmation.
Sorry,
Mark