Plugin Directory

Changeset 2615755

Timestamp:
10/18/2021 11:01:51 AM (3 years ago)
Author:
jnext
Message:

Fixed minor bugs

Location:
jnext-timeline-blocks/trunk/src/block/jnext-content-timeline
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jnext-timeline-blocks/trunk/src/block/jnext-content-timeline/edit.js

    r2615750 r2615755  
    120120            } ],
    121121        } );
    122         timelineConnector.jnextTimelineContent_back(this.props.clientId, jtb_key);
     122        timelineConnector.jnextTimelineContent_back(this.props.clientId);
    123123    };
    124124
  • jnext-timeline-blocks/trunk/src/block/jnext-content-timeline/timelineConnector.js

    r2615750 r2615755  
    1 function jnextTimelineContent_back(id, jtb_key = '') {
     1function jnextTimelineContent_back(id) {
    22
    33    var timeline = jQuery(".jnext-content-timeline").parents("#block-" + id);
     
    3131            var horizontal_arrows = jQuery('.prev-arrow, .next-arrow').outerHeight() / 2;
    3232            var parent_right;
    33             if('' != jtb_key)
    34             {
    35                
    36                 initJnextContentTimeline(horizontal_item, 3);
    37                
    38             }else{
    39                 initJnextContentTimeline(horizontal_item, 0);
    40             }
     33
     34            initJnextContentTimeline(horizontal_item);
    4135           
    4236            horizontal_item.find('.jnext-timeline-content:nth-child(odd)').each(function () {
     
    6357                parent_right = hlast_item_right - timeline_start_icon.top;
    6458                $last_item = parent_right + timeline_end_icon.top;
    65                
     59
    6660                jQuery('.prev-arrow, .next-arrow').css('top', (+(oddTimelineHighestBox + ($icon_class.outerHeight() / 2)) + (+remove_spacing) - horizontal_arrows));
    6761
Note: See TracChangeset for help on using the changeset viewer.