Only disable tooltips themselves, not the entire provider
This commit is contained in:
parent
dfc2b562e7
commit
765492e882
2 changed files with 14 additions and 3 deletions
|
@ -1077,8 +1077,10 @@
|
||||||
left: 2px;
|
left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.co-checkable-item:hover:after {
|
@media (min-width: 768px) {
|
||||||
visibility: visible;
|
.co-checkable-item:hover:after {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.co-checkable-item.checked:after, .co-checkable-menu-state.all:after, .co-checkable-menu-state.some:after {
|
.co-checkable-item.checked:after, .co-checkable-menu-state.all:after, .co-checkable-menu-state.some:after {
|
||||||
|
|
|
@ -56,7 +56,16 @@ quayApp.config(['$tooltipProvider', function ($tooltipProvider) {
|
||||||
// decorate the tooltip getter
|
// decorate the tooltip getter
|
||||||
$tooltipProvider.$get[$tooltipProvider.$get.length - 1] = function($window) {
|
$tooltipProvider.$get[$tooltipProvider.$get.length - 1] = function($window) {
|
||||||
if ('ontouchstart' in $window) {
|
if ('ontouchstart' in $window) {
|
||||||
return function() {};
|
var existing = tooltipFactory.apply(this, arguments);
|
||||||
|
return function(element) {
|
||||||
|
// Note: We only disable bs-tooltip's themselves. $tooltip is used for other things
|
||||||
|
// (such as the datepicker), so we need to be specific when canceling it.
|
||||||
|
if (element.attr('bs-tooltip') == null) {
|
||||||
|
return existing.apply(this, arguments);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return tooltipFactory.apply(this, arguments);
|
return tooltipFactory.apply(this, arguments);
|
||||||
|
|
Reference in a new issue