Merge branch 'MDL-64175-38' of git://github.com/sarjona/moodle into MOODLE_38_STABLE

This commit is contained in:
Jun Pataleta
2020-05-29 12:01:58 +08:00
4 changed files with 10 additions and 4 deletions
@@ -714,7 +714,9 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
*/
_getMediumProperties: function(medium) {
var boolAttr = function(elem, attr) {
return elem.getAttribute(attr) ? true : false;
// As explained in MDL-64175, some OS (like Ubuntu), are removing the value for these attributes.
// So in order to check if attr="true", we need to check if the attribute exists and if the value is empty or true.
return (elem.hasAttribute(attr) && (elem.getAttribute(attr) || elem.getAttribute(attr) === ''));
};
var tracks = {
File diff suppressed because one or more lines are too long
@@ -714,7 +714,9 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
*/
_getMediumProperties: function(medium) {
var boolAttr = function(elem, attr) {
return elem.getAttribute(attr) ? true : false;
// As explained in MDL-64175, some OS (like Ubuntu), are removing the value for these attributes.
// So in order to check if attr="true", we need to check if the attribute exists and if the value is empty or true.
return (elem.hasAttribute(attr) && (elem.getAttribute(attr) || elem.getAttribute(attr) === ''));
};
var tracks = {
+3 -1
View File
@@ -712,7 +712,9 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
*/
_getMediumProperties: function(medium) {
var boolAttr = function(elem, attr) {
return elem.getAttribute(attr) ? true : false;
// As explained in MDL-64175, some OS (like Ubuntu), are removing the value for these attributes.
// So in order to check if attr="true", we need to check if the attribute exists and if the value is empty or true.
return (elem.hasAttribute(attr) && (elem.getAttribute(attr) || elem.getAttribute(attr) === ''));
};
var tracks = {