Sha256: be60f05051736b56afbfac190bc62d579cd24138f9129f1bb3eea072ac552ffa
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
# # this is a sample of how to show the labs # you could use this javascript or do your own # $(document).ready -> ####### init empty lab list and the views ######### lab_show_number = 3 # how many labs to show at the start window.max_lab_show_number = 6 # used in medivo/lab_list/handler.coffee window.lab_list = new window.OrderedLabList( [], lab_show_number ) window.map_view = new window.MapView( lab_list ) window.lab_list_view = new window.LabListView( lab_list ) # if you are loading data while the page first shows data = $('#lab_list_container').data('labs') if data.labs window.map_view.center_point = data.zip_location window.lab_list.setList(data.labs) $('input:radio[name=selected_lab]:first').prop('checked',true) else console.log('no data')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
medivo-0.2.24 | app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee |