Merge branch 'MDL-59499-master-classfix' of github.com:snake/moodle

This commit is contained in:
Andrew Nicols 2017-07-26 14:53:39 +08:00
commit a5164e85f2
4 changed files with 8 additions and 2 deletions

View File

@ -1360,6 +1360,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_minus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});
@ -1389,6 +1390,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_plus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});

File diff suppressed because one or more lines are too long

View File

@ -1333,6 +1333,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_minus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});
@ -1362,6 +1363,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_plus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});

View File

@ -177,6 +177,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_minus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});
@ -206,6 +207,7 @@ Category.prototype = {
return Templates.renderPix('t/switch_plus', 'core', string);
})
.then(function(html) {
html = Y.Node.create(html).addClass('tree-icon').getDOMNode().outerHTML;
return action.set('innerHTML', html);
}).fail(Notification.exception);
});