|
@@ -7,13 +7,13 @@ if (Meteor.isClient) {
|
|
|
Template.images.events({
|
|
|
"click .js-image": function (event) {
|
|
|
$(event.target).css("width", "50px");
|
|
|
+ },
|
|
|
+ "click .js-del-image": function (event) {
|
|
|
+ let imageId = this._id;
|
|
|
+ console.log(imageId);
|
|
|
+ $("#" + imageId).hide(200, function () {
|
|
|
+ Images.remove({ _id: imageId });
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
-if (Meteor.isServer) {
|
|
|
- Meteor._debug("I am the server");
|
|
|
-}
|
|
|
-
|
|
|
-Meteor._debug("where am I running");
|
|
|
-
|