Merge branch 'develop' into vrfs580

This commit is contained in:
Jonathan Kolyer 2014-02-14 08:06:51 -06:00
commit 80b042a637
8 changed files with 17 additions and 6 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();

View File

@ -30,7 +30,14 @@
</div>
<small><input name="remember_me" type="checkbox"> Keep me signed in</small>
<script type="text/javascript">
if(window.jamClient === undefined) {
document.write('<input name="user[remember_me]" type="hidden" value="0">');
document.write('<small><input type="checkbox" name="remember_me" class="keep-logged-in" value="1" name="user[remember_me]" id="user_remember_me" checked> Keep me logged in</small>');
} else {
document.write('<input name="user[remember_me]" type="hidden" value="1">');
}
</script>
<div class="login-error-msg">Invalid login</div>