PluginProbe
Hostinger Tools / 2.2.1
Hostinger Tools v2.2.1
3.0.79 3.0.78 3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 All 110 releases
← All changes | src/js/main.js +8 -0 2.0.4 → 2.2.1 View file →
@@ -9,8 +9,9 @@
9 9 const closeBtn = $( '.hsr-close-btn' );
10 10 const navigationItem = $( '.hsr-list__item' );
11 11 const knowledgeCard = $( '#card-knowledge' );
12 12 const helpCard = $( '#card-help' );
13 + const adminBarGenerateContent = $( '#wp-admin-bar-create_content_with_ai' );
13 14
14 15 stepsTitle.on( 'click', function () {
15 16 $( this ).find( '.hsr-onboarding-step--expand' ).toggleClass( openClass );
16 17 $( this ).parent().find( '.hsr-onboarding-step--content' ).slideToggle( 200 );
@@ -19,8 +20,15 @@
19 20 closeBtn.on( 'click', function () {
20 21 $( '.hsr-modal' ).removeClass( 'open' );
21 22 $( 'body' ).removeClass( 'modal-open' );
22 23 } )
24 +
25 + adminBarGenerateContent.click( function () {
26 + $( '.hsr-list__item' ).removeClass( 'hsr-active' );
27 + $('.hts-ai-assistant-tab').addClass( 'hsr-active' );
28 + $( '.hsr-tab-content' ).hide();
29 + $( ".hsr-tab-content[data-name='ai-assistant']" ).show();
30 + } );
23 31
24 32 navigationItem.click( function () {
25 33 let clickedItem = $( this );
26 34