VRFS-3245 : Fix genre validation on wrong step.

This commit is contained in:
Steven Miers 2015-05-31 14:54:29 -05:00
parent 7f02ca5240
commit a22a77bbb6
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
context.JK.BandSetupScreen = function (app) {
var NONE_SPECIFIED = 'None specified'
var GENRE_STEP = 1
var ui = new context.JK.UIHelper(JK.app)
var logger = context.JK.logger;
var profileUtils = context.JK.ProfileUtils;
@ -216,7 +217,7 @@
band.hourly_rate=$("#hourly-rate").val()
band.gig_minimum=$("#gig-minimum").val()
if (currentStep==3) {
if (currentStep==GENRE_STEP) {
band.genres = getSelectedGenres();
band.validate_genres = true
} else {