Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

syntax

  • Loading branch information...
commit bb24c60e82197f3026b135061833afc346b1cebf 1 parent ccaf91d
@myf myf authored
Showing with 10 additions and 9 deletions.
  1. +8 −8 bamboo-meteor-client.html
  2. +2 −1  client/client.coffee
View
16 bamboo-meteor-client.html
@@ -22,6 +22,7 @@
<template name="control">
<ul>
<li>control panel</li>
+ <button class="btn" id="charting-button" > chart </button>
</ul>
</template>
@@ -54,13 +55,12 @@
</template>
<template name="column">
-<div class="accordion-group">
- <div class="accordion-heading">
- <a class="accordion-toggle" href="#{{this}}" data-toggle="collapse" data-target="#{{this}}">{{this}}</a>
- </div>
- <div class="accordion-body collapse" id="{{this}}">
- <div class="gg_graph" id="{{this}}.gg"></div>
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" href="#{{this}}" data-toggle="collapse" data-target="#{{this}}">{{this}}</a>
+ </div>
+ <div class="accordion-body collapse" id="{{this}}">
+ <div class="gg_graph" id="{{this}}.gg"></div>
+ </div>
</div>
-</div>
-
</template>
View
3  client/client.coffee
@@ -17,6 +17,8 @@ if root.Meteor.is_client
Meteor.call('register_dataset', url)
else
console.log "already cached server side.."
+ root.Template.control.events = "click button": ->
+ Meteor.call("charting")
root.Template.maincontent.columns = ->
url = Session.get('currentDatasetURL')
@@ -65,7 +67,6 @@ Meteor.methods(
"legend-position":"bottom"
).render(div)
- #TODO: making new charting that associates with a button for all charts
charting: ->
#item_list = Datasets.findOne({url:url}).summary["(ALL)"]
url = Session.get("currentDatasetURL")
Please sign in to comment.
Something went wrong with that request. Please try again.