Skip to content
Extraits de code Groupes Projets
Valider cf61bb75 rédigé par MrZYX's avatar MrZYX
Parcourir les fichiers

added dir attribute to html element; made tipsy gravity dependant on that

parent 42523139
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
= javascript_include_tag "validation"
:javascript
$(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();
});
......
:javascript
$(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();
});
......
......@@ -3,7 +3,7 @@
-# the COPYRIGHT file.
!!!
%html{:lang => I18n.locale.to_s}
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
%head
%meta{:charset => 'utf-8'}
......
......@@ -3,7 +3,7 @@
-# the COPYRIGHT file.
!!!
%html{:lang => I18n.locale.to_s}
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
%head
%title
DIASPORA*
......
......@@ -2,7 +2,7 @@
:javascript
$(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();
});
......
......@@ -152,7 +152,7 @@ var View = {
addAspect: {
bind: function() {
$(".add_aspect_button", "#aspect_nav").tipsy({
gravity:"w"
gravity: ($('html').attr('dir') == 'rtl')? "e" : "w"
});
}
},
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter