Fixed deleting of assets which aren't parents or children
This commit is contained in:
@@ -18,7 +18,7 @@ dburles:collection-helpers@1.0.3
|
|||||||
dburles:mongo-collection-instances@0.3.3
|
dburles:mongo-collection-instances@0.3.3
|
||||||
ddp@1.1.0
|
ddp@1.1.0
|
||||||
deps@1.0.7
|
deps@1.0.7
|
||||||
differential:vulcanize@0.0.3
|
differential:vulcanize@0.0.4
|
||||||
ejson@1.0.6
|
ejson@1.0.6
|
||||||
email@1.0.6
|
email@1.0.6
|
||||||
fastclick@1.0.3
|
fastclick@1.0.3
|
||||||
@@ -50,7 +50,7 @@ mike:mocha@0.5.2
|
|||||||
minifiers@1.1.5
|
minifiers@1.1.5
|
||||||
minimongo@1.0.8
|
minimongo@1.0.8
|
||||||
mobile-status-bar@1.0.3
|
mobile-status-bar@1.0.3
|
||||||
momentjs:moment@2.9.0
|
momentjs:moment@2.10.0
|
||||||
mongo@1.1.0
|
mongo@1.1.0
|
||||||
npm-bcrypt@0.7.8_2
|
npm-bcrypt@0.7.8_2
|
||||||
observe-sequence@1.0.6
|
observe-sequence@1.0.6
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
Template.experienceDialog.events({
|
Template.experienceDialog.events({
|
||||||
"tap #deleteButton": function(event, instance){
|
"tap #deleteButton": function(event, instance){
|
||||||
Experiences.softRemoveNode(instance.data.experienceId);
|
Experiences.softRemove(instance.data.experienceId);
|
||||||
GlobalUI.deletedToast(instance.data.experienceId, "Experiences", "Experience");
|
GlobalUI.deletedToast(instance.data.experienceId, "Experiences", "Experience");
|
||||||
GlobalUI.closeDetail()
|
GlobalUI.closeDetail();
|
||||||
},
|
},
|
||||||
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
|
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
|
||||||
"change #experienceNameInput, input #experienceNameInput": function(event){
|
"change #experienceNameInput, input #experienceNameInput": function(event){
|
||||||
var value = event.currentTarget.value
|
var value = event.currentTarget.value;
|
||||||
Experiences.update(this._id, {$set: {name: value}});
|
Experiences.update(this._id, {$set: {name: value}});
|
||||||
},
|
},
|
||||||
"change #valueInput": function(event){
|
"change #valueInput": function(event){
|
||||||
var value = +event.currentTarget.value
|
var value = +event.currentTarget.value;
|
||||||
Experiences.update(this._id, {$set: {value: value}});
|
Experiences.update(this._id, {$set: {value: value}});
|
||||||
},
|
},
|
||||||
"change #experienceDescriptionInput": function(event){
|
"change #experienceDescriptionInput": function(event){
|
||||||
var value = event.currentTarget.value
|
var value = event.currentTarget.value;
|
||||||
Experiences.update(this._id, {$set: {description: value}});
|
Experiences.update(this._id, {$set: {description: value}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,16 +3,16 @@ Template.noteDialog.events({
|
|||||||
Notes.update(instance.data.noteId, {$set: {color: event.color}});
|
Notes.update(instance.data.noteId, {$set: {color: event.color}});
|
||||||
},
|
},
|
||||||
"tap #deleteButton": function(event, instance){
|
"tap #deleteButton": function(event, instance){
|
||||||
Notes.softRemoveNode(instance.data.noteId);
|
Notes.softRemove(instance.data.noteId);
|
||||||
GlobalUI.deletedToast(instance.data.noteId, "Notes", "Note");
|
GlobalUI.deletedToast(instance.data.noteId, "Notes", "Note");
|
||||||
GlobalUI.closeDetail()
|
GlobalUI.closeDetail();
|
||||||
},
|
},
|
||||||
"change #noteNameInput, input #noteNameInput": function(event){
|
"change #noteNameInput, input #noteNameInput": function(event){
|
||||||
var value = event.currentTarget.value
|
var value = event.currentTarget.value;
|
||||||
Notes.update(this._id, {$set: {name: value}});
|
Notes.update(this._id, {$set: {name: value}});
|
||||||
},
|
},
|
||||||
"change #noteDescriptionInput": function(event){
|
"change #noteDescriptionInput": function(event){
|
||||||
var value = event.currentTarget.value
|
var value = event.currentTarget.value;
|
||||||
Notes.update(this._id, {$set: {description: value}});
|
Notes.update(this._id, {$set: {description: value}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user