1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Add QTip2 and use it to display a message about access code on the first page.

This commit is contained in:
Adrien CLERC 2012-02-11 19:18:34 +01:00
parent 2f928e08be
commit bd1b0aaff3
5 changed files with 37 additions and 0 deletions

1
budget/static/css/jquery.qtip.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,7 @@
@import "bootstrap.min.css";
@import "../fonts/fontfaces.css";
@import "jquery-ui.css";
@import "jquery.qtip.min.css";
html, body{
margin-top: 25px;

13
budget/static/js/jquery.qtip.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -39,4 +39,25 @@
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('form.create #password').qtip({
content: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password here!") }}',
show: {
event: 'focus'
},
hide: {
event: 'focusout'
},
position: {
my: "bottom center",
at: "top center",
adjust: {
method: 'shift'
}
}
});
});
</script>
{% endblock %}

View file

@ -7,6 +7,7 @@
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
<script src="{{ url_for("static", filename="js/jquery-1.6.2.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
<script src="{{ url_for("static", filename="js/jquery.qtip.min.js") }}"></script>
{% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){