summaryrefslogtreecommitdiff
path: root/views/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/js/admin.js')
-rw-r--r--views/js/admin.js32
1 files changed, 29 insertions, 3 deletions
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': '<div id="wpsg-popover-content"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>',
@@ -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() {