Any chance you could submit this either as a patch of as a pull request on GitHub?
On Sun, Feb 1, 2009 at 4:46 PM, sprite <[email protected]> wrote: > > _location_chooser.html.haml [Lets the page page W3C validator] > > %span#location_chooser > = :country.l > %br > = select_tag(:country_id, '<option></ > option>'+options_from_collection_for_select > (Country.find_countries_with_metros, "id", "name", selected_country), > {:style => "width:100px"}) > > %br > = :state.l > %br > = select_tag(:state_id, '<option></option>' + > options_from_collection_for_select(states, "id", "name", > (selected_state rescue nil)), {:style => "width:100px", :disabled => > states.empty? }) > > = image_tag 'spinner.gif', :plugin => 'community_engine', :style => > 'display:none;' > > %br > = :metro_area.l > %br > = select_tag(:metro_area_id, '<option></option>' + > options_from_collection_for_select(metro_areas, "id", "name", > (selected_metro_area rescue nil)), {:style => "width:100px", :disabled > => metro_areas.empty? }) > > = image_tag 'spinner.gif', :plugin => 'community_engine', :style => > 'display:none;' > > = observe_field("state_id", {:url => {:controller => 'users', :action > => 'metro_area_update'}, | > :with => "'state_id=' + $('state_id').value + '&country_id=' + $ > ('country_id').value", | > :loading => "$$('span#location_chooser img')[0].show();", | > 500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", | > :update => "location_chooser"}) | > > %span > > = observe_field("country_id", {:url => {:controller => > 'users', :action => 'metro_area_update'}, | > :with => "country_id", | > :loading => "$$('span#location_chooser img')[0].show();", | > 500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", | > :update => "location_chooser"}) | > > In photo.rb I had to change the display_name function to > > def display_name > self.name.blank? ? self.created_at.strftime("created on: %m/%d/ > %y") : self.name > end > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
