Sha256: 5a1be2416757c5658aa195a73b2bb4d8fede23b317d1c6881189283ea8705792

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

#
#  this is a sample of how to show the labs
#  you could use this javascript or do your own
#

$(document).ready ->

  # if you are loading data while the page first shows
  data = $('#lab_list_container').data('labs')
  if data.labs
    # can limit the number of labs to show with option show_labs in LabList constructor
    window.map_view.center_point = data.zip_location
    window.lab_list.setLabs(data.labs)
  else
    console.log('no data')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
medivo-0.0.12 app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee
medivo-0.0.11 app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee
medivo-0.0.9 app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee
medivo-0.0.8 app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee