* better text for video test

This commit is contained in:
Seth Call 2015-09-09 07:02:12 -05:00
parent a4f465b6d1
commit b483dd537f
2 changed files with 11 additions and 2 deletions

View File

@ -110,7 +110,8 @@
}
if(options.type == "yes_no") {
$yesBtn.show().unbind('click').click(function() {
var yesText = options.yes_text || 'YES'
$yesBtn.text(yesText).show().unbind('click').click(function() {
if(options.yes) {
options.yes();
}

View File

@ -345,7 +345,15 @@ mixins.push(Reflux.listenTo(VideoStore, 'onVideoStateChanged'))
$root = $(@getDOMNode())
$select = $root.find('.webcam-select-container select')
if Object.keys(@state.deviceNames).length == 0
VideoActions.testVideo()
context.JK.Banner.showYesNo({
yes_text: 'RUN TEST',
title: "Run Video Test?",
html: "A video window will show up with changing colors and shapes for 10 seconds. The test was successful if you were able to see the changing colors. Close the window once the colors and shapes stop changing.",
yes: =>
VideoActions.testVideo()
})
else
device = $select.val()
#VideoActions.selectDevice(device, {})