You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/10/02 15:48:24 UTC

svn commit: r1706405 - /myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js

Author: lofwyr
Date: Fri Oct  2 13:48:24 2015
New Revision: 1706405

URL: http://svn.apache.org/viewvc?rev=1706405&view=rev
Log:
Demo: Better Source-Code viewer with Prism JS

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js?rev=1706405&r1=1706404&r2=1706405&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-demo/src/main/webapp/script/demo.js Fri Oct  2 13:48:24 2015
@@ -41,6 +41,10 @@ var initInspect = function (elements) {
 
   var tobagoElements = Tobago.Utils.selectWithJQuery(elements, ".tobago-in,.tobago-out,.tobago-date");
 
+  tobagoElements = tobagoElements.filter(function () {
+    return jQuery(this).parents("#page\\:content").length == 1;
+  });
+
   tobagoElements.hover(function () {
 
     // clear old selections: