Browse files

Merge branch 'm23_MDL-35215' of git://github.com/totara/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents c2ef0e4 + d01c6b2 commit 6b0ada1e6eaa2b197a37a44d4ae48be80a0649c0 @danpoltawski danpoltawski committed Oct 29, 2012
Showing with 9 additions and 1 deletion.
  1. +8 −1 lib/javascript-static.js
  2. +1 −0 theme/base/style/core.css
View
9 lib/javascript-static.js
@@ -1470,9 +1470,16 @@ M.util.help_icon = {
},
display : function(event, args) {
+ if (Y.one('html').get('dir') == 'rtl') {
+ var overlayPosition = [Y.WidgetPositionAlign.TR, Y.WidgetPositionAlign.LC];
+ } else {
+ var overlayPosition = [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.RC];
+ }
+
this.helplink = args.node;
+
this.overlay.set('bodyContent', Y.Node.create('<img src="'+M.cfg.loadingicon+'" class="spinner" />'));
- this.overlay.set("align", {node:args.node, points:[Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.RC]});
+ this.overlay.set("align", {node:args.node, points: overlayPosition});
var fullurl = args.url;
if (!args.url.match(/https?:\/\//)) {
View
1 theme/base/style/core.css
@@ -479,6 +479,7 @@ body.tag .managelink {padding: 5px;}
#helppopupbox .yui3-widget-bd {margin:0 1em 1em 1em;border-top:1px solid #eee;}
#helppopupbox .helpheading {font-size: 1em;}
#helppopupbox .spinner {margin:1em;}
+.dir-rtl #helppopupbox .yui3-widget-hd {float:left;margin:3px 0 0 3px;}
/**
* Custom menu

0 comments on commit 6b0ada1

Please sign in to comment.