25 lines
603 B
JavaScript
25 lines
603 B
JavaScript
Template.baseDialog.rendered = function(){
|
|
var self = this;
|
|
//update all autogrows after they've been filled
|
|
var pata = this.$("paper-autogrow-textarea");
|
|
pata.each(function(index, el){
|
|
el.update($(el).children().get(0));
|
|
})
|
|
//update all input fields as well
|
|
var input = this.$("paper-input");
|
|
input.each(function(index, el){
|
|
el.valueChanged();
|
|
})
|
|
//after the dialog is built, open it
|
|
if (!this.alreadyRendered){
|
|
Session.set("global.ui.detailShow", true);
|
|
this.alreadyRendered = true;
|
|
}
|
|
}
|
|
|
|
Template.baseDialog.events({
|
|
"tap #backButton": function(){
|
|
GlobalUI.closeDetail()
|
|
}
|
|
});
|