ooModalOpen = function(data){
  var parentNode = document.getElementById("AppLayout");
  Blaze.renderWithData(Template.ooModal, data, parentNode)
}

ooModalClose = function(id, callback) {
  var element = document.getElementById(id);
  $(element).addClass('is-closed');
  var renderedView = Blaze.getView(element)
  Meteor.setTimeout(function(){
    Blaze.remove(Blaze.getView(renderedView));
    if (callback)
      return callback('done')
  }, 400);
}

@@ -23,16 +23,181 @@
 (data)%7B%0A
+  var element = document.getElementById(data.id);%0A  if (element) %7B%0A    var renderedView = Blaze.getView(element);%0A    Blaze.remove(Blaze.getView(renderedView));%0A  %7D%0A
   var pa

remove first, if same modal already rendered