Skip to content

Commit

Permalink
Merge branch 'MDL-40759-master-fix3' of http://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 23, 2017
2 parents b7cc51c + fe4f35b commit 85ead19
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
} else {
$columnicon = ($dir == "ASC") ? "sort_asc" : "sort_desc";
}
$columnicon = $OUTPUT->pix_icon('t/' . $columnicon, get_string($columndir), 'core', ['class' => 'iconsort']);
$columnicon = $OUTPUT->pix_icon('t/' . $columnicon, get_string(strtolower($columndir)), 'core',
['class' => 'iconsort']);

}
$$column = "<a href=\"user.php?sort=$column&amp;dir=$columndir\">".$string[$column]."</a>$columnicon";
Expand Down
2 changes: 1 addition & 1 deletion course/amd/build/actions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions course/amd/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,22 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
*/
var replaceActionItem = function(actionitem, image, stringname,
stringcomponent, titlestr, titlecomponent, newaction) {
actionitem.find('img').attr('src', url.imageUrl(image, 'core'));

str.get_string(stringname, stringcomponent).done(function(newstring) {
actionitem.find('span.menu-action-text').html(newstring);
actionitem.attr('title', newstring);
});
if (titlestr) {
str.get_string(titlestr, titlecomponent).done(function(newtitle) {
str.get_string(titlestr, titlecomponent).then(function(newtitle) {
templates.renderPix(image, 'core', newtitle).then(function(html) {
actionitem.find('.icon').replaceWith(html);
});
actionitem.attr('title', newtitle);
});
} else {
templates.renderPix(image, 'core', '').then(function(html) {
actionitem.find('.icon').replaceWith(html);
});
}
actionitem.attr('data-action', newaction);
};
Expand Down Expand Up @@ -591,4 +598,4 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
replaceActionItem(actionitem, image, stringname, stringcomponent, titlestr, titlecomponent, newaction);
}
};
});
});
5 changes: 3 additions & 2 deletions theme/bootstrapbase/less/moodle/core.less
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,8 @@ img#persona_signin {
padding-right: 4px;

.iconsmall,
.smallicon {
.smallicon,
.icon {
margin: 4px 4px 4px 0;
padding: 8px 4px 0 2px;
vertical-align: text-bottom;
Expand Down Expand Up @@ -2031,7 +2032,7 @@ img#persona_signin {
a {
display: block;
color: @dropdownLinkColor;
padding: 2px 1em 2px 28px;
padding: 6px 1em 6px 1em;
&:hover {
color: @dropdownLinkColorHover;
background-color: @dropdownLinkBackgroundHover;
Expand Down
5 changes: 3 additions & 2 deletions theme/bootstrapbase/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -4436,7 +4436,8 @@ img#persona_signin {
padding-right: 4px;
}
.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .iconsmall,
.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .smallicon {
.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .smallicon,
.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .icon {
margin: 4px 4px 4px 0;
padding: 8px 4px 0 2px;
vertical-align: text-bottom;
Expand Down Expand Up @@ -4482,7 +4483,7 @@ img#persona_signin {
.moodle-actionmenu[data-enhanced].show .menu a {
display: block;
color: #333;
padding: 2px 1em 2px 28px;
padding: 6px 1em 6px 1em;
}
.moodle-actionmenu[data-enhanced].show .menu a:hover {
color: #fff;
Expand Down

0 comments on commit 85ead19

Please sign in to comment.