MDL-59499 admin: class fix for course category expansion icons

This commit is contained in:
Jake Dallimore
2017-07-26 11:11:09 +08:00
parent afa752eb12
commit 9e9ed46a99
4 changed files with 8 additions and 2 deletions
@@ -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
@@ -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);
});
+2
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);
});