errors_list.js 344 B

123456789101112131415161718192021
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 03/09/15
  7. * Time: 20:51
  8. */
  9. Template.meteorErrors.helpers({
  10. errors: function () {
  11. return Errors.collection.find();
  12. }
  13. });
  14. Template.meteorError.rendered = function () {
  15. var error = this.data;
  16. Meteor.setTimeout(function () {
  17. Errors.collection.remove(error._id);
  18. }, Errors.delay);
  19. };