~erobererunc/sahana-eden/tropo_xforms

« back to all changes in this revision

Viewing changes to static/scripts/S3/s3.locationselector.widget.js

  • Committer: Fran Boon
  • Date: 2010-11-25 23:22:24 UTC
  • Revision ID: fran@aidiq.com-20101125232224-gg91eac2qpq4mxv0
A little more progress on the new Location Selector (still disabled)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    $('#gis_location_L4').change( function() {
63
63
        gis_dropdown_select(5);
64
64
    });
 
65
    // When 'Add Location' pressed, unhide the next part
 
66
    // Why not working?
 
67
    $('gis_location_add-btn').click( function() {
 
68
        $('gis_location_geolocate-btn').removeClass('hidden').show();
 
69
        $('gis_location_map-btn').removeClass('hidden').show();
 
70
        $('gis_location_name_label').removeClass('hidden').show();
 
71
        $('gis_location_name').removeClass('hidden').show();
 
72
        $('gis_location_addr_street_label').removeClass('hidden').show();
 
73
        $('gis_location_addr_street').removeClass('hidden').show();
 
74
        $('gis_location_advanced_div').removeClass('hidden').show();
 
75
    });
 
76
    // When 'Advanced' checked, unhide the next part
 
77
    $('gis_location_advanced_checkbox').change( function() {
 
78
        // @ToDo Hide again if unticked
 
79
        $('gis_location_lat_label').removeClass('hidden').show();
 
80
        $('gis_location_lat_row').removeClass('hidden').show();
 
81
        $('gis_location_lon_label').removeClass('hidden').show();
 
82
        $('gis_location_lon_row').removeClass('hidden').show();
 
83
    });
65
84
});
 
 
b'\\ No newline at end of file'