added dir attribute to html element; made tipsy gravity dependant on that
This commit is contained in:
parent
42523139c7
commit
cf61bb756d
6 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
= javascript_include_tag "validation"
|
= javascript_include_tag "validation"
|
||||||
:javascript
|
:javascript
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#user_new [title]').tipsy({trigger: 'focus', gravity: 'w'});
|
$('#user_new [title]').tipsy({trigger: 'focus', gravity: ($('html').attr('dir') == 'rtl') ? 'e' : 'w'});
|
||||||
$("#user_username").focus();
|
$("#user_username").focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
:javascript
|
:javascript
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#new_user [title]').tipsy({trigger: 'focus', gravity: 'w'});
|
$('#new_user [title]').tipsy({trigger: 'focus', gravity: ($('html').attr('dir') == 'rtl') ? 'e' : 'w'});
|
||||||
$("#user_email").focus();
|
$("#user_email").focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
!!!
|
!!!
|
||||||
%html{:lang => I18n.locale.to_s}
|
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
|
||||||
%head
|
%head
|
||||||
%meta{:charset => 'utf-8'}
|
%meta{:charset => 'utf-8'}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
!!!
|
!!!
|
||||||
%html{:lang => I18n.locale.to_s}
|
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
|
||||||
%head
|
%head
|
||||||
%title
|
%title
|
||||||
DIASPORA*
|
DIASPORA*
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#user_new [title]').tipsy({trigger: 'focus', gravity: 'w'});
|
$('#user_new [title]').tipsy({trigger: 'focus', gravity: ($('html').attr('dir') == 'rtl')? 'e' : 'w'});
|
||||||
$("#user_username").focus();
|
$("#user_username").focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ var View = {
|
||||||
addAspect: {
|
addAspect: {
|
||||||
bind: function() {
|
bind: function() {
|
||||||
$(".add_aspect_button", "#aspect_nav").tipsy({
|
$(".add_aspect_button", "#aspect_nav").tipsy({
|
||||||
gravity:"w"
|
gravity: ($('html').attr('dir') == 'rtl')? "e" : "w"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue