Commit a08b3cac authored by Jonny Bradley's avatar Jonny Bradley

[FIX] tooltips: Check pref before setting up cluetips (setUpClueTips called...

[FIX] tooltips: Check pref before setting up cluetips (setUpClueTips called from other places without checking causing problems in mobile)
parent 934e1718
......@@ -202,6 +202,9 @@ function checkDuplicateRows( button, columnSelector, rowSelector, parentSelector
}
function setUpClueTips() {
if (! jqueryTiki.tooltips) {
return;
}
var ctOptions = {splitTitle: '|', cluezIndex: 2000, width: -1, fx: {open: 'fadeIn', openSpeed: 'fast'},
clickThrough: true, hoverIntent: {sensitivity: 3, interval: 100, timeout: 0}, mouseOutClose: 'both',
closeText: '<img width="16" height="16" alt="' + tr('Close') + '" src="img/icons/close.png">'};
......@@ -235,12 +238,8 @@ $(function() { // JQuery's DOM is ready event - before onload
if (!window.jqueryTiki) window.jqueryTiki = {};
// tooltip functions and setup
if (jqueryTiki.tooltips) { // apply "cluetips" to all .tips class anchors
setUpClueTips();
} // end cluetip setup
setUpClueTips();
// Reflections
if (jqueryTiki.reflection) {
$("img.reflect").reflect({});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment