Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
7 app/assets/javascripts/projects_setup.js.coffee
@@ -19,9 +19,9 @@ ipo['projects_setup']['show'] = ->
active_group_type = el
if el.attr('id') == active_id
- $(checkbox).prop('checked', true)
+ $(checkbox).attr('checked', 'checked')
else
- $(checkbox).prop('checked', false)
+ $(checkbox).removeAttr('checked')
$("#teams").click (e) ->
select_group_element $(@), e, "teams", "#project_team_mode"
@@ -52,7 +52,8 @@ ipo['projects_setup']['show'] = ->
progress = parseInt(data.loaded / data.total * 100, 10)
data.context.find('.bar').css('width', progress + '%')
if progress == 100
- data.context.remove()
+ data.context.fadeOut "slow", ->
+ $(this).remove()
$('.project_media').on "ajax:success", ".media form", (event, data, status, xhr) ->
$(event.target).parent().fadeOut "slow", () ->
View
4 app/models/project.rb
@@ -9,10 +9,10 @@ class Project < ActiveRecord::Base
serialize :properties, ActiveRecord::Coders::Hstore
- hstore_accessor :properties, :team_mode, :min_stay_duration, :min_students, :max_students,
+ hstore_accessor :properties, :min_stay_duration, :min_students, :max_students,
:per_week_cost, :per_week_cost_final, :required_languages, :related_student_passions, :related_fields_of_study,
:student_educational_requirement,
- :address, :internet_distance, :location_private, :location_type, :transportation_available,
+ :address, :internet_distance, :location_type, :transportation_available,
:location_description, :culture_description, :housing_type, :dining_location, :housing_description,
:safety_level, :challenges_description, :typical_attire, :guidelines_description, :agree_memo, :agree_to_transport
View
8 db/migrate/20130930162454_add_columns_for_project_boolean_fields.rb
@@ -0,0 +1,8 @@
+class AddColumnsForProjectBooleanFields < ActiveRecord::Migration
+ def change
+ change_table :projects do |t|
+ t.boolean :team_mode
+ t.boolean :location_private
+ end
+ end
+end
View
8 db/structure.sql
@@ -162,7 +162,9 @@ CREATE TABLE projects (
field_host_id integer,
properties hstore,
status character varying(255),
- wizard_status character varying(255)
+ wizard_status character varying(255),
+ team_mode boolean,
+ location_private boolean
);
@@ -318,4 +320,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130828211325');
INSERT INTO schema_migrations (version) VALUES ('20130828222146');
-INSERT INTO schema_migrations (version) VALUES ('20130930062101');
+INSERT INTO schema_migrations (version) VALUES ('20130930062101');
+
+INSERT INTO schema_migrations (version) VALUES ('20130930162454');

No commit comments for this range

Something went wrong with that request. Please try again.