var _actionAjaxMapper = function(){
$('.modal-form .ui.dropdown, .modal-form select:not(.nochosen)').dropdown();
$('.modal-form .ui.checkbox, .modal-form .ui.radio.checkbox').checkbox();
- $('.no-touch .modal-form a[title], .no-touch .modal-form .tooltip').popup({
+ $('.modal-form a[title], .modal-form .tooltip').popup({
variation: 'inverted',
- inline: false
+ inline: false,
+ addTouchEvents: false,
});
}
{% else %}
{% set component_classes = "ui vertical centered tiny icon fluid menu" %}
<nav id="logoutmenu" class="{{ component_classes }}" aria-label="{{ _T('User menu') }}">
- <div class="ui dropdown navigation item no-touch tooltip" data-html="{{ login.loggedInAs()|raw }}" data-position="right center">
+ <div class="ui dropdown navigation item tooltip" data-html="{{ login.loggedInAs()|raw }}" data-position="right center">
<i class="user circle icon" aria-hidden="true"></i>
<span class="visually-hidden">{{ login.loggedInAs()|raw }}</span>
<i class="dropdown icon" aria-hidden="true"></i>
width="{{ member.picture.getOptimalWidth() }}"
height="{{ member.picture.getOptimalHeight() }}"
alt="{{ _T("Picture") }}"
- class="green no-touch tooltip"
+ class="green tooltip"
{# Drag'n drop is disabled on member form #}
{% if (hidden_elements is not defined) %}
data-html="{{ _T("Drag and drop an image file to change the picture") }}">
<div class="ui basic fitted segment">
<div class="ui toggle mini checkbox">
<input type="checkbox" name="compactmenu" id="compactmenu" class="hidden"{% if login.getCompactMenu() %} checked="checked"{% endif %}>
- <label for="compactmenu"{% if login.getCompactMenu() %} class="no-touch tooltip" data-html="{{ _T("Compact menu") }}"{% endif %}>
+ <label for="compactmenu"{% if login.getCompactMenu() %} class="tooltip" data-html="{{ _T("Compact menu") }}"{% endif %}>
{% if not login.getCompactMenu() %}{{ _T("Compact menu") }}{% endif %}
</label>
</div>
data-position="right center"
>
{% if mode != "compact" %}
- <div class="image header title{% if mode == "compact" %} no-touch tooltip" data-html="{{ _T("Dashboard") }}"{% else %}"{% endif %}>
+ <div class="image header title{% if mode == "compact" %} tooltip" data-html="{{ _T("Dashboard") }}"{% else %}"{% endif %}>
{% endif %}
<i class="compass icon" aria-hidden="true"></i>
{% if mode != "compact" %}
{% set my_routes = my_routes|merge([item.route.name])|merge(item.route.aliases ?? []) %}
{% endfor %}
{% if mode == "compact" %}
- <div class="ui{% if cur_route in my_routes %} active-menu{% endif %} dropdown navigation item no-touch tooltip" data-html="{{ title }}" data-position="right center">
+ <div class="ui{% if cur_route in my_routes %} active-menu{% endif %} dropdown navigation item tooltip" data-html="{{ title }}" data-position="right center">
<i class="{{ icon }} icon" aria-hidden="true"></i>
<span class="visually-hidden">{{ title }}</span>
<i class="dropdown icon" aria-hidden="true"></i>
var _addDynFieldAjaxMapper = function(){
$('.modal-form .ui.dropdown, .modal-form select:not(.nochosen)').dropdown();
$('.modal-form .ui.checkbox, .modal-form .ui.radio.checkbox').checkbox();
- $('.no-touch .modal-form a[title], .no-touch .modal-form .tooltip').popup({
+ $('.modal-form a[title], .modal-form .tooltip').popup({
variation: 'inverted',
- inline: false
+ inline: false,
+ addTouchEvents: false,
});
}
var _batchAjaxMapper = function(){
$('.modal-form .ui.dropdown, .modal-form select:not(.nochosen)').dropdown();
$('.modal-form .ui.checkbox, .modal-form .ui.radio.checkbox').checkbox();
- $('.no-touch .modal-form a[title], .no-touch .modal-form .tooltip').popup({
+ $('.modal-form a[title], .modal-form .tooltip').popup({
variation: 'inverted',
- inline: false
+ inline: false,
+ addTouchEvents: false,
});
{% include 'elements/js/calendar.js.twig' with {
selector: ".modal-form [id$='rangestart'], .modal-form [id$='rangeend']"
/* Fomantic UI components */
var _bindFomanticComponents = function() {
- if (!("ontouchstart" in document.documentElement) || !("no-touch" in document.documentElement.classList)) {
- document.documentElement.classList.add("no-touch");
- }
-
var
$sidebar = $('.ui.sidebar'),
$dropdown = $('.ui.dropdown:not(.navigation, .autosubmit), select:not(.nochosen)'),
$accordion = $('.ui.accordion'),
$checkbox = $('.ui.checkbox, .ui.radio.checkbox'),
$tabulation = $('.ui.tabbed .item'),
- $popup = $('.no-touch a[title], .no-touch .tooltip'),
- $menuPopupRight = $('.no-touch .ui.vertical.accordion.menu a[title]'),
- $menuPopupBottom = $('.no-touch .ui.top.fixed.menu a.item[title]'),
- $menuPopupLeft = $('.no-touch .ui.dropdown.right-aligned a[title]')
+ $popup = $('a[title], .tooltip'),
+ $infoPopup = $('i.circular.primary.icon.info.tooltip'),
+ $menuPopupRight = $('.ui.vertical.accordion.menu a[title]'),
+ $menuPopupBottom = $('.ui.top.fixed.menu a.item[title]'),
+ $menuPopupLeft = $('.ui.dropdown.right-aligned a[title]')
;
$sidebar.sidebar('attach events', '.toc.item');
$popup
.popup({
variation: 'inverted',
- inline: false
+ inline: false,
+ addTouchEvents: false,
+ })
+ ;
+ /* Touch events are allowed on info icons popups.
+ */
+ $infoPopup
+ .popup({
+ variation: 'inverted',
+ inline: false,
+ addTouchEvents: true,
})
;
/* Position right on the main accordion menu.
variation: 'inverted',
delay: {
show: 300
- }
+ },
+ addTouchEvents: false,
})
;
/* Position bottom on the top fixed menu.
$menuPopupBottom
.popup({
position: 'center bottom',
- variation: 'inverted'
+ variation: 'inverted',
+ addTouchEvents: false,
})
;
/* Position left on the top right language dropdown menu.
variation: 'inverted',
delay: {
show: 300
- }
+ },
+ addTouchEvents: false,
})
;
}