@el = @$el.get 0
# Find all bind-points under this element, but not under a subview
- @bindPoints = @$ '[data-bind], [name]' .not @$ '[data-subview] [data-bind], [data-subview] [name]'
+ @bindPoints = @$ '[data-bind], [name]' .not @$('[data-subview]').find('[data-bind], [name]')
$: (sel) ->
@$el.find sel
template : require 'kraken/template/graph-edit'
events:
- 'click .redraw-button' : 'stopAndRender'
- 'click .load-button' : 'load'
- 'click .save-button' : 'save'
- 'click .done-button' : 'done'
+ 'click .redraw-button' : 'stopAndRender'
+ 'click .load-button' : 'load'
+ 'click .save-button' : 'save'
+ 'click .done-button' : 'done'
'keypress .graph-details input[type="text"]' : 'onKeypress'
+ 'keypress .chart-options .value' : 'onKeypress'
'submit form.graph-details' : 'onDetailsSubmit'
'change :not(.chart-options) select' : 'onDetailsSubmit'
- 'keypress .chart-options .value' : 'onKeypress'
'submit form.chart-options' : 'onOptionsSubmit'
'change .chart-options input[type="checkbox"]' : 'onOptionsSubmit'