2015-04-24 01:33:29 +08:00
|
|
|
export default Em.View.extend({
|
2015-03-03 23:17:07 +08:00
|
|
|
templateName: "poll",
|
2015-04-24 01:33:29 +08:00
|
|
|
classNames: ["poll"],
|
|
|
|
attributeBindings: ["data-poll-type", "data-poll-name", "data-poll-status"],
|
|
|
|
|
|
|
|
poll: Em.computed.alias("controller.poll"),
|
|
|
|
|
|
|
|
"data-poll-type": Em.computed.alias("poll.type"),
|
|
|
|
"data-poll-name": Em.computed.alias("poll.name"),
|
|
|
|
"data-poll-status": Em.computed.alias("poll.status"),
|
|
|
|
|
|
|
|
_fixPollContainerHeight: function() {
|
|
|
|
const pollContainer = this.$(".poll-container");
|
|
|
|
pollContainer.height(pollContainer.height());
|
|
|
|
}.on("didInsertElement")
|
2015-03-03 23:17:07 +08:00
|
|
|
});
|