You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2014/12/16 18:37:34 UTC

[48/50] [abbrv] incubator-nifi git commit: NIFI-27: - Upgrading jQuery, jQuery UI, jqGrid. - Replacing deprecated functionality.

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/d7b1113a/nar-bundles/monitor-threshold-bundle/ui/src/main/webapp/js/nf-common.js
----------------------------------------------------------------------
diff --git a/nar-bundles/monitor-threshold-bundle/ui/src/main/webapp/js/nf-common.js b/nar-bundles/monitor-threshold-bundle/ui/src/main/webapp/js/nf-common.js
index 1cc8c99..a427e69 100644
--- a/nar-bundles/monitor-threshold-bundle/ui/src/main/webapp/js/nf-common.js
+++ b/nar-bundles/monitor-threshold-bundle/ui/src/main/webapp/js/nf-common.js
@@ -878,10 +878,11 @@ $(document).ready(function () {
     }
 
     function addHoverEffect(selector, normalStyle, overStyle) {
-        return $(selector).addClass(normalStyle).live('mouseover', function () {
+        $(document).on('mouseenter', selector, function () {
             $(this).removeClass(normalStyle).addClass(overStyle);
-        }).live('mouseout', function () {
+        }).on('mouseleave', selector, function () {
             $(this).removeClass(overStyle).addClass(normalStyle);
-        })
+        });
+        return $(selector).addClass(normalStyle);
     }
 });
\ No newline at end of file