Merge branch 'develop' of bitbucket.org:jamkazam/jam-cloud into develop

This commit is contained in:
Jonathan Kolyer 2014-02-14 06:55:53 -06:00
commit 835d5a24a0
7 changed files with 9 additions and 5 deletions

View File

@ -14,7 +14,7 @@
%h3 Validations
%p It should not be possible to create an invalid recording/track/mix/claim; there are a great deal of validations that will prevent you from doing something invalid. If you find otherwise, please fill out a JIRA .
= semantic_form_for([:admin, @recording], :html => {:multipart => true}, :url => @recording.new_record? ? admin_recordings_path : "/admin/recordings/#{@recording.id}") do |f|
= semantic_form_for([:admin, @recording], :html => {:multipart => true}, :url => @recording.new_record? ? admin_recordings_path : "#{ENV['RAILS_RELATIVE_URL_ROOT']}/admin/recordings/#{@recording.id}") do |f|
= f.semantic_errors *f.object.errors.keys
= f.inputs name: 'Recording Fields' do

View File

@ -36,7 +36,7 @@ module JamAdmin
# Activate observers that should always be running.
config.active_record.observers = "JamRuby::InvitedUserObserver"
#config.assets.prefix = ENV['RAILS_RELATIVE_URL_ROOT'] || '/'
config.assets.prefix = "#{ENV['RAILS_RELATIVE_URL_ROOT']}/assets"
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.

View File

@ -105,4 +105,5 @@ add_secret_to_user_authorization.sql
track_connection_id_not_null.sql
recordings_all_discarded.sql
recordings_via_admin_web.sql
relax_band_model_varchar.sql
relax_band_model_varchar.sql
add_piano.sql

1
db/up/add_piano.sql Normal file
View File

@ -0,0 +1 @@
INSERT INTO instruments (id, description, popularity) VALUES ('piano', 'Piano', 2);

View File

@ -24,6 +24,7 @@
"Drums": { "client_id": 40, "server_id": "drums" },
"Electric Guitar": { "client_id": 50, "server_id": "electric guitar" },
"Keyboard": { "client_id": 60, "server_id": "keyboard" },
"Piano": { "client_id": 61, "server_id": "piano" },
"Voice": { "client_id": 70, "server_id": "voice" },
"Flute": { "client_id": 80, "server_id": "flute" },
"Clarinet": { "client_id": 90, "server_id": "clarinet" },
@ -52,6 +53,7 @@
40: { "server_id": "drums" },
50: { "server_id": "electric guitar" },
60: { "server_id": "keyboard" },
61: { "server_id": "piano"} ,
70: { "server_id": "voice" },
80: { "server_id": "flute" },
90: { "server_id": "clarinet" },

View File

@ -56,6 +56,7 @@
"french horn":"french_horn",
"harmonica":"harmonica",
"keyboard":"keyboard",
"piano":"keyboard",
"mandolin":"mandolin",
"oboe":"oboe",
"other":"other",
@ -573,7 +574,7 @@
// if this has already been initialized, re-init it so it picks up any new <options>
$item.easyDropDown('destroy')
}
$item.easyDropDown({nativeTouch: !gon.isNativeClient && gon.global.env != "test"});
$item.easyDropDown({nativeTouch: !gon.isNativeClient && gon.global.env != "test", cutOff:7});
})
}

View File

@ -38,7 +38,6 @@
}
function events() {
console.log($(dialogId + ' .signin-cancel'));
$(dialogId + ' .signin-cancel').click(function(e) {
app.layout.closeDialog('signin-dialog');
e.stopPropagation();