Changeset 13599
- Timestamp:
- 04/25/2024 02:56:47 AM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024
- Files:
-
- 3 edited
-
build/blocks/plugin-card/view.asset.php (modified) (1 diff)
-
build/blocks/plugin-card/view.js (modified) (1 diff)
-
src/blocks/plugin-card/view.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/build/blocks/plugin-card/view.asset.php
r13457 r13599 1 <?php return array('dependencies' => array(), 'version' => ' 4fc53e1a9528ad03e6d0');1 <?php return array('dependencies' => array(), 'version' => 'f221373b7e38d2ff3d7c'); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/build/blocks/plugin-card/view.js
r13457 r13599 1 document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".plugin-cards li");e&&e.forEach((function(e){e.addEventListener("click",(function( ){if(""===window.getSelection().toString()){var t=e.querySelector("a");if(t){var n=t.getAttribute("href");window.location.href=n}}}))}))}));1 document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".plugin-cards li");e&&e.forEach((function(e){e.addEventListener("click",(function(t){var n=window.getSelection().toString();if("a"!==t.target.tagName.toLowerCase()&&""===n){var o=e.querySelector("a");if(o){var r=o.getAttribute("href");window.location.href=r}}}))}))})); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/plugin-card/view.js
r13457 r13599 7 7 if ( cards ) { 8 8 cards.forEach( function( card ) { 9 card.addEventListener( 'click', function( ) {9 card.addEventListener( 'click', function( event ) { 10 10 var selectedText = window.getSelection().toString(); 11 12 // Keep regular anchor tag function 13 if ( 'a' === event.target.tagName.toLowerCase() ) { 14 return; 15 } 11 16 12 17 // If they are selecting text, let's not navigate.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)