Merge pull request #3892 from louyihua/ie-fix

Fix exception on Internet Explorer when adding first transcript language
This commit is contained in:
David Baumgold
2014-05-29 09:09:05 -04:00

View File

@@ -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) {