From 128dd0e9dac0f7d889d15a187a45e6a80784f35f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 6 Sep 2017 13:59:22 +0000 Subject: - Tooltip Safari Problem git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6463 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/form/text.phtml | 1 + views/admin/konfiguration.phtml | 3 +-- views/js/admin.js | 32 +++++++++++++++++++++++++++++--- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/views/admin/form/text.phtml b/views/admin/form/text.phtml index 50fd204..94011be 100644 --- a/views/admin/form/text.phtml +++ b/views/admin/form/text.phtml @@ -14,6 +14,7 @@ view['field_config']['help'])) { ?> + diff --git a/views/admin/konfiguration.phtml b/views/admin/konfiguration.phtml index 518d2a7..16d991f 100644 --- a/views/admin/konfiguration.phtml +++ b/views/admin/konfiguration.phtml @@ -38,8 +38,7 @@   - - + 'DBUpdate')); ?> get_option('wpsg_currency'), array('help' => 'Einstellungen_Allgemein_Waehrung')); ?> diff --git a/views/js/admin.js b/views/js/admin.js index c0143ce..fa32ba8 100644 --- a/views/js/admin.js +++ b/views/js/admin.js @@ -147,16 +147,34 @@ function wpsg_in_array(needle, haystack) } + var po; + function wpsg_ajaxBind() { // Hilfe Tooltips jQuery('*[data-wpsg-tip]').on('click', function() { - jQuery(this).off('click').on('click', function() { return false; } ); + //jQuery(this).off('click').on('click', function() { return false; } ); - var po = this; - + if (typeof po === "object") + { + + if (po != this) jQuery(po).popover('hide'); + + } + + po = this; + + if (jQuery(this).hasClass('activated')) + { + + jQuery(this).popover('show'); + + return false; + + } + jQuery(this).popover( { 'html': true, 'content': '
' + wpsg_ajax.label_pleasewait + '
', @@ -180,6 +198,8 @@ function wpsg_in_array(needle, haystack) } } ); + jQuery(this).addClass('activated'); + return false; } ); @@ -202,6 +222,12 @@ function wpsg_in_array(needle, haystack) return false; } ); + + jQuery("html,body").on("click touchstart", function() { + + if (typeof po === "object") jQuery(po).popover('hide'); + + }); jQuery('.wpsg_showhide_filter').bind('click', function() { -- cgit v1.2.3