Commit 0f580a7e by David Baumgold

Merge pull request #3892 from louyihua/ie-fix

Fix exception on Internet Explorer when adding first transcript language
parents 50e820db 551301a7
......@@ -47,6 +47,13 @@ function($, _, AbstractEditor, FileUpload, UploadDialog) {
var dropdown = $(element).clone();
_.each(values, function(value, key) {
// Note: IE may raise an exception if key is an empty string,
// while other browsers return null as excepted. So coerce it
// into null for browser consistency.
if (key === "") {
key = null;
}
var option = dropdown[0].options.namedItem(key);
if (option) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment