Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e04e61d6
Commit
e04e61d6
authored
Apr 14, 2015
by
zubair-arbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show error message to user on photo reverification page if Flash not found
ECOM-1355
parent
b6265c44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
lms/static/js/verify_student/views/webcam_photo_view.js
+15
-0
No files found.
lms/static/js/verify_student/views/webcam_photo_view.js
View file @
e04e61d6
...
...
@@ -305,6 +305,11 @@
.
toggleClass
(
'is-disabled'
,
!
isEnabled
)
.
prop
(
'disabled'
,
!
isEnabled
)
.
attr
(
'aria-disabled'
,
!
isEnabled
);
},
isMobileDevice
:
function
()
{
// Check whether user is using mobile device or not
return
(
navigator
.
userAgent
.
match
(
/
(
Android|iPad|iPhone|iPod
)
/g
)
?
true
:
false
);
}
});
...
...
@@ -335,6 +340,16 @@
if
(
view
.
isSupported
()
)
{
return
view
;
}
// If user is not using mobile device and Flash is not available
// then show user error message for Flash
if
(
!
view
.
isMobileDevice
()
&&
!
view
.
isSupported
())
{
view
.
backend
.
trigger
(
'error'
,
gettext
(
"No Flash Detected"
),
gettext
(
"You don't seem to have Flash installed. Get Flash to continue your verification."
)
);
return
view
;
}
// Last resort is HTML file input with image capture.
// This will work everywhere, and on iOS it will
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment