Moved tooltips from jquery.tooltip to jquery-cluetip
Also removed no longer needed jquery.tooltip related files Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -37,21 +37,8 @@
|
||||
(event.startDate = this day AND event.endDate is NULL)
|
||||
OR (event.startDate <= this day AND evend.endDate >= this day)
|
||||
#}
|
||||
<td id="event-calendar-{{ i }}"{% if eventList[i].events|length > 0 %} class="program"{% endif %}>
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventList', { date: eventList[i].date|date('Y-m-d')}) }}">{{ eventList[i].date|date('d') }}</a>
|
||||
{% if eventList[i].events|length > 0 %}
|
||||
<script type="text/javascript">
|
||||
$('#event-calendar-{{ i }}').tooltip({
|
||||
bodyHandler: function() {
|
||||
eventList = '';
|
||||
{% for event in eventList[i].events %}
|
||||
eventList += '{{ event.title }}<br />';
|
||||
{% endfor %}
|
||||
return ((eventList == '') ? false : eventList);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
<td id="event-calendar-{{ i }}"{% if eventList[i].events|length > 0 %} class="program" rel="{{ path('KekRozsakFrontBundle_eventAjaxList', {date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}"{% endif %}>
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventList', { date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}">{{ eventList[i].date|date('d') }}</a>
|
||||
</td>
|
||||
{% if cur is divisibleby(7) %}
|
||||
</tr>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<div id="profil-belso">
|
||||
[avatar]
|
||||
{{ app.user.displayName }}<br />
|
||||
<span id="jog-lista" title="{% for role in app.user.roles %}{{ role.shortDescription }}<br />{% endfor %}">Jogosultság{% if app.user.roles|length > 1 %}ok{% endif %}</span><br />
|
||||
<span id="jog-lista" title="|Jogosultságok|{% for role in app.user.roles %}{{ role.shortDescription }}<br />{% endfor %}">Jogosultság{% if app.user.roles|length > 1 %}ok{% endif %}</span><br />
|
||||
<dl>
|
||||
<dt>Csoportjaim</dt>
|
||||
{% for group in app.user.groups %}
|
||||
|
@@ -6,12 +6,11 @@
|
||||
<title>Kék Rózsák{% block title %}{% endblock %}</title>
|
||||
<meta charset="utf8" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('css/kekrozsak_front.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('css/jquery.tooltip.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('js/jquery-cluetip/jquery.cluetip.css') }}" />
|
||||
{% block additional_css %}{% endblock %}
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="{{ asset('js/jquery.bgiframe.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('js/jquery.dimensions.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('js/jquery.tooltip.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/lib/jquery.hoverIntent.js')}}"></script>
|
||||
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/jquery.cluetip.js') }}"></script>
|
||||
{% block additional_js %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
@@ -62,7 +61,7 @@
|
||||
<p class="hir-cim">{{ news.title }}</p>
|
||||
<p class="hir-szoveg">{{ news.text|raw }}</p>
|
||||
{% if app.user %}
|
||||
<p class="hir-szerzo">{{ news.createdBy.displayName }}</p>
|
||||
<p class="hir-szerzo">{{ news.createdBy|userdataspan }}</p>
|
||||
{% endif %}
|
||||
<p class="hir-datum">{{ news.createdAt|date('Y-m-d H:i') }}</p>
|
||||
</div>
|
||||
@@ -87,10 +86,12 @@
|
||||
$('#profil-box').show();
|
||||
}
|
||||
});
|
||||
$('#jog-lista').tooltip({
|
||||
track: true,
|
||||
delay: 0,
|
||||
fade: 250
|
||||
$('#jog-lista').cluetip({
|
||||
splitTitle: '|',
|
||||
showTitle: false
|
||||
});
|
||||
$('.program').cluetip({
|
||||
cluezIndex: 1000
|
||||
});
|
||||
$('#esemeny-mutato').click(function() {
|
||||
if ($('#esemeny-box').is(':visible'))
|
||||
@@ -102,6 +103,11 @@
|
||||
$('#esemeny-box').show();
|
||||
}
|
||||
});
|
||||
$('.userdata').cluetip();
|
||||
$('.userdata-secret').cluetip({
|
||||
splitTitle: '|',
|
||||
showTitle: false
|
||||
});
|
||||
{% else %}
|
||||
$('#login-mutato').click(function() {
|
||||
if ($('#login-box').is(':visible'))
|
||||
|
Reference in New Issue
Block a user