Skip to content

Commit

Permalink
Merge pull request #3323 from apinf/bugfix/ie-making-feedback-public-…
Browse files Browse the repository at this point in the history
…private-navigates-user

Fixed IE: making feedback public/private navigates user
  • Loading branch information
matleppa authored Jan 15, 2018
2 parents ca8000a + a2622c8 commit aac7fdb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apinf_packages/feedback/client/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,25 @@ Template.feedbackItem.events({
}
});
},
'click .edit-feedback-item': function () {
'click .edit-feedback-item': function (event) {
// Prevent default action of the event will not be triggered
event.preventDefault();
// Get feedback item
const item = Template.currentData().item;
// Show edit feedback form modal
Modal.show('feedbackForm', { formType: 'update', feedbackItem: item });
},
'click .delete-feedback-item': function () {
'click .delete-feedback-item': function (event) {
// Prevent default action of the event will not be triggered
event.preventDefault();
// Get feedback item
const item = Template.currentData().item;
// Show the Delete Confirmation dialogue
Modal.show('deleteFeedbackItem', { feedbackItem: item });
},
'click .visibility-feedback-item': () => {
'click .visibility-feedback-item': (event) => {
// Prevent default action of the event will not be triggered
event.preventDefault();
// Get feedback item
const item = Template.currentData().item;

Expand Down

0 comments on commit aac7fdb

Please sign in to comment.