* better text for video test
This commit is contained in:
parent
a4f465b6d1
commit
b483dd537f
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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, {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue