Plugin Directory

Changeset 3363654


Ignore:
Timestamp:
09/18/2025 05:48:42 AM (4 months ago)
Author:
jdahir0789
Message:

Improve search result table hover effect

Location:
hook-locator
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hook-locator/tags/1.0/assets/css/hook-locator-admin.css

    r3362969 r3363654  
    347347.wp-list-table.hook_results tbody tr:last-child td {
    348348    border-bottom: none;
     349}
     350
     351.wp-list-table.hook_results tbody tr .hook-locator-detail-btn {
     352    opacity: .8;
     353}
     354
     355.wp-list-table.hook_results tbody tr:hover .hook-locator-detail-btn {
     356    opacity: 1;
    349357}
    350358
  • hook-locator/tags/1.0/assets/js/hook-locator-admin.js

    r3362969 r3363654  
    4545            // Keyboard shortcuts
    4646            $(document).on('keydown', this.handleKeyboardShortcuts.bind(this));
    47 
    48             // Table enhancements
    49             this.enhanceResultsTable();
    5047        },
    5148
     
    149146                }
    150147            }
    151         },
    152 
    153         /**
    154          * Enhance results table functionality.
    155          *
    156          * @since 2.1.0
    157          */
    158         enhanceResultsTable: function() {
    159             // Add hover effects to table rows
    160             $('.wp-list-table.hook_results tbody tr').hover(
    161                 function() {
    162                     $(this).find('.hook-locator-detail-btn').css('opacity', '1');
    163                 },
    164                 function() {
    165                     $(this).find('.hook-locator-detail-btn').css('opacity', '0.8');
    166                 }
    167             );
    168148        },
    169149
  • hook-locator/trunk/assets/css/hook-locator-admin.css

    r3362882 r3363654  
    347347.wp-list-table.hook_results tbody tr:last-child td {
    348348    border-bottom: none;
     349}
     350
     351.wp-list-table.hook_results tbody tr .hook-locator-detail-btn {
     352    opacity: .8;
     353}
     354
     355.wp-list-table.hook_results tbody tr:hover .hook-locator-detail-btn {
     356    opacity: 1;
    349357}
    350358
  • hook-locator/trunk/assets/js/hook-locator-admin.js

    r3362882 r3363654  
    4545            // Keyboard shortcuts
    4646            $(document).on('keydown', this.handleKeyboardShortcuts.bind(this));
    47 
    48             // Table enhancements
    49             this.enhanceResultsTable();
    5047        },
    5148
     
    149146                }
    150147            }
    151         },
    152 
    153         /**
    154          * Enhance results table functionality.
    155          *
    156          * @since 2.1.0
    157          */
    158         enhanceResultsTable: function() {
    159             // Add hover effects to table rows
    160             $('.wp-list-table.hook_results tbody tr').hover(
    161                 function() {
    162                     $(this).find('.hook-locator-detail-btn').css('opacity', '1');
    163                 },
    164                 function() {
    165                     $(this).find('.hook-locator-detail-btn').css('opacity', '0.8');
    166                 }
    167             );
    168148        },
    169149
Note: See TracChangeset for help on using the changeset viewer.