genre to genres as list

This commit is contained in:
Jonathon Wilson 2012-10-26 08:46:04 -06:00
parent b1bca81f1e
commit 7d83870640
3 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,9 @@ Message from Seth on sequence for creating/joining sessions:
var $this = $(this);
var data = $this.formToObject();
data.client_id = app.clientId;
// FIXME: Support up to 3 genres in UI
// The following is a hack
data.genres = [data.genres];
var url = "/api/sessions";
$.ajax({
type: "POST",
@ -60,7 +63,7 @@ Message from Seth on sequence for creating/joining sessions:
var opt = context.JK.fillTemplate(optionTemplate, d);
options.push(opt);
});
$('#create-session-form select[name="genre"]').html(options.join(''));
$('#create-session-form select[name="genres"]').html(options.join(''));
});
}

View File

@ -270,6 +270,7 @@ label {
height: 300px;
border: 1px solid #fff;
position:relative;
float:left;
}
.session-track [track-role] { margin:4px; }
.session-track .latency { text-align:center; }

View File

@ -173,7 +173,7 @@
<div class="formrow">
<label>Genre
<select name="genre">
<select name="genres">
</select>
</label>
<input type="text" class="hidden"/>