* resque_spec path removed
This commit is contained in:
parent
21a101cc56
commit
1d6741714d
|
|
@ -54,7 +54,7 @@ group :test do
|
|||
gem 'spork', '0.9.0'
|
||||
gem 'database_cleaner', '0.7.0'
|
||||
gem 'faker'
|
||||
gem 'resque_spec', :path => "/home/jam/src/resque_spec/"
|
||||
gem 'resque_spec' #, :path => "/home/jam/src/resque_spec/"
|
||||
gem 'timecop'
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@
|
|||
var self = null;
|
||||
var operatingSystem = null;
|
||||
|
||||
// SELECT DEVICE STATE
|
||||
var validScore = false;
|
||||
|
||||
// SELECT TRACKS STATE
|
||||
|
||||
var TOTAL_STEPS = 7;
|
||||
var STEP_INTRO = 0;
|
||||
var STEP_SELECT_DEVICE = 1;
|
||||
|
|
@ -58,6 +63,10 @@
|
|||
var $watchVideoOutput = $currentWizardStep.find('.watch-video.audio-output');
|
||||
var $audioInput = $currentWizardStep.find('.select-audio-input-device');
|
||||
var $audioOutput = $currentWizardStep.find('.select-audio-output-device');
|
||||
var $bufferIn = $currentWizardStep.find('.select-buffer-in');
|
||||
var $bufferOut = $currentWizardStep.find('.select-buffer-out');
|
||||
var $nextButton = $ftueButtons.find('.btn-next');
|
||||
var $frameSize = $currentWizardStep.find('.select-frame-size');
|
||||
|
||||
// returns a deviceInfo hash for the device matching the deviceId, or null.
|
||||
function findDevice(deviceId) {
|
||||
|
|
@ -72,6 +81,20 @@
|
|||
return $audioOutput.val();
|
||||
}
|
||||
|
||||
function initializeNextButtonState() {
|
||||
$nextButton.removeClass('button-orange button-grey');
|
||||
|
||||
if(validScore) $nextButton.addClass('button-orange');
|
||||
else $nextButton.addClass('button-grey');
|
||||
}
|
||||
|
||||
function audioDeviceUnselected() {
|
||||
validScore = false;
|
||||
|
||||
|
||||
initializeNextButtonState();
|
||||
}
|
||||
|
||||
function initializeWatchVideo() {
|
||||
$watchVideoInput.unbind('click').click(function() {
|
||||
|
||||
|
|
@ -118,6 +141,20 @@
|
|||
|
||||
function initializeAudioInputChanged() {
|
||||
$audioInput.unbind('change').change(function(evt) {
|
||||
|
||||
var audioDeviceId = selectedAudioInput();
|
||||
|
||||
if(!audioDeviceId) {
|
||||
audioDeviceUnselected();
|
||||
return false;
|
||||
}
|
||||
|
||||
var audioDevice = findDevice(selectedAudioInput());
|
||||
|
||||
if(!audioDevice) {
|
||||
context.JK.alertSupportedNeeded('Unable to find device information for: ' + audioDevice);
|
||||
}
|
||||
|
||||
releaseDropdown(function () {
|
||||
renderStartNewFtueLatencyTesting();
|
||||
var $select = $(evt.currentTarget);
|
||||
|
|
@ -199,6 +236,7 @@
|
|||
})
|
||||
}
|
||||
function initializeStep() {
|
||||
initializeNextButtonState();
|
||||
initializeWatchVideo();
|
||||
initializeAudioInputChanged();
|
||||
}
|
||||
|
|
@ -328,12 +366,15 @@
|
|||
}
|
||||
|
||||
function back() {
|
||||
if($(this).is('.button-grey')) return;
|
||||
step = step - 1;
|
||||
moveToStep();
|
||||
return false;
|
||||
}
|
||||
|
||||
function next() {
|
||||
if($(this).is('.button-grey')) return;
|
||||
|
||||
step = step + 1;
|
||||
|
||||
moveToStep();
|
||||
|
|
|
|||
Loading…
Reference in New Issue