~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/views/FindAChurch/SearchView.js

  • Committer: Tim Black
  • Date: 2013-09-16 21:55:50 UTC
  • Revision ID: tim@alwaysreformed.com-20130916215550-udgomfnuurq0hglu
Tags: Fixed crash
Added file to create OPC starting URLs for import.io, fixed dependencies for model.js, fixed crash, load congs to map after map loads

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        render: function(){
27
27
            // TODO: Convert this to use Mustache
28
28
            config.render_to_id(this, "#search_template")
29
 
            $('#')
 
29
            //$('#')
30
30
            
31
31
            // Attach search event handler to search button and text box
32
32
            $('.search').click(this.do_search)
128
128
                    config.db_name+'/_spatial/points?bbox='+
129
129
                    south_lat+','+west_lng+','+north_lat+','+east_lng,
130
130
                function(data, textStatus, jqXHR){
 
131
                    if (data == '') return;
131
132
                    var congs = eval('('+data+')')['rows'];
132
133
                    if (typeof congs !== 'undefined' && congs.length > 0){
133
134
                        // TODO: Refactor this so it's not redeclared every time this code is called