session - Meteor & Semantic UI - How do I give some transition effect to specific template after modal pops up & click 'Approval' button? -


1. want : give transition effect semantic-ui template a(template 'card') after modal pops & user click 'approval' button.

2. did first : save template instance of template session, template instance using session.get(), , give transition effect in modal initializer inside of template b(template 'modalremove')`s onrendered function.

3. how did :

    template.card.events ({         "click #remove-item": function (event, template) {             event.preventdefault();              session.set('removetemplate', template); // error             session.set('removeitem',this);              $('.ui.basic.modal').modal('show');         }     });      template.modalremove.onrendered(function () {          $('.ui.basic.modal')             .modal({                 closable  : true,                 blurring  : true,                 ondeny    : function(){                     return;                 },                 onapprove : function() {                      var removetemplate = seesion.get('removetemplate');                     if (removetemplate == null) {                         console.log("removetemplate null");                         return;                     }                      removetemplate.$('.card').transition({                         animation  : 'fade left',                         duration   : '650ms',                         oncomplete : function() {                              meteor.call("removeitem", session.get('removeitem'));                          }                     });                 }             });    }); 

4. result : got 'uncaught rangeerror' tried save template instance session.

    ejson.js:500 uncaught rangeerror: maximum call stack size exceeded 

5. want know : how give transition effect template 'card' after modal pops & click 'approval' button?

thanks!


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -