diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-11-04 14:34:21 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-11-04 14:34:21 +0000 |
| commit | e4326891a13a1bf445635ffbe30fae4e7462b458 (patch) | |
| tree | 7a9fef1e99eb7785467967894b55e9da2a86e3c5 /views/js/admin.js | |
| parent | ae89a04884f3870b78f6fa1ea93d14ea8d27aedf (diff) | |
- Arbeiten V4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5896 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/js/admin.js')
| -rw-r--r-- | views/js/admin.js | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/views/js/admin.js b/views/js/admin.js index c7e9276..c0143ce 100644 --- a/views/js/admin.js +++ b/views/js/admin.js @@ -147,27 +147,13 @@ function wpsg_in_array(needle, haystack) }
- jQuery(document).ready(function() {
-
- // Sortierung
- jQuery('th.wpsg_order').bind('click', function() {
-
- var direction = "ASC";
- if (jQuery(this).hasClass('wpsg_order_asc') && jQuery('#wpsg_order').val() == jQuery(this).attr("data-order")) direction = "DESC";
-
- jQuery('#wpsg_ascdesc').val(direction);
- jQuery('#wpsg_order').val(jQuery(this).attr("data-order"));
-
- jQuery('#filter_form').submit();
-
- return false;
-
- } );
-
+ function wpsg_ajaxBind()
+ {
+
// Hilfe Tooltips
- jQuery('*[data-wpsg-tip]').bind('click', function() {
+ jQuery('*[data-wpsg-tip]').on('click', function() {
- jQuery(this).unbind('click');
+ jQuery(this).off('click').on('click', function() { return false; } );
var po = this;
@@ -197,7 +183,26 @@ function wpsg_in_array(needle, haystack) return false;
} );
-
+
+ }
+
+ jQuery(document).ready(function() {
+
+ // Sortierung
+ jQuery('th.wpsg_order').bind('click', function() {
+
+ var direction = "ASC";
+ if (jQuery(this).hasClass('wpsg_order_asc') && jQuery('#wpsg_order').val() == jQuery(this).attr("data-order")) direction = "DESC";
+
+ jQuery('#wpsg_ascdesc').val(direction);
+ jQuery('#wpsg_order').val(jQuery(this).attr("data-order"));
+
+ jQuery('#filter_form').submit();
+
+ return false;
+
+ } );
+
jQuery('.wpsg_showhide_filter').bind('click', function() {
if (jQuery(this).hasClass('active'))
@@ -216,5 +221,7 @@ function wpsg_in_array(needle, haystack) }
} );
+
+ wpsg_ajaxBind();
} );
|
