Implemented detail view for items and containers

This commit is contained in:
Thaum
2015-02-02 10:48:56 +00:00
parent 5d9d72df00
commit 786e7cd769
14 changed files with 217 additions and 168 deletions

View File

@@ -30,7 +30,7 @@ this.GlobalUI = (function() {
};
})(this));
};
//To show a detail, first animate the click, with raising z-depth
//then call this function with a template and data
//the element should have a hero-id of detail-main
@@ -40,14 +40,14 @@ this.GlobalUI = (function() {
GlobalUI.detailHero = opts.hero;
Session.set("global.ui.detailShow", true);
};
//if setting the detail rather than showing it,
//the template should contain the following in template.rendered
//
//if (!this.alreadyRendered){
// Session.set("global.ui.detailShow", true);
// this.alreadyRendered = true;
//}
// Session.set("global.ui.detailShow", true);
// this.alreadyRendered = true;
//}
GlobalUI.setDetail = function(opts) {
Session.set("global.ui.detailData", opts.data);
Session.set("global.ui.detailTemplate", opts.template);