New Landing How can we help? Themeforest Theme Support Dante Deleting a single tab – tab content is NOT DELETED – BUT MIGRATED to other tabs?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #198075
    dekkydog
    Member
    Post count: 59

    Hi there,
    got an issue with the Tabs “Delete” function within the Swift Page Builder.

    ************* IMPORTANT **************
    Please note that I am showing you this issue on a COMPLETELY clean UNMODIFIED install of the DANTE theme using your imported demo content.
    **************************************

    Problem:

    a) I have a page with 4 custom named tabs.
    b) Each tab has its own differing content.
    c) When you delete the 4th Tab, the content contained within that tab is NOT DELETED but migrated to the other tabs? AFTER clicking the WordPress “Update” page button.

    I ran a few tests and noticed that this problem ONLY seems to occur when the INDIVIDUAL TABS get a custom user defined name. IE: NOT the default “Tab 1″, Tab 2” etc …

    You can see this issue by logging in to the admin (details supplied) and go to the page named “Tabs Delete Issue”. Once you are looking at the page in the admin – Delete the 4th Tab, then click “Update”. You will notice the content from the 4th Tab is now contained within the first 3 Tabs? This unwanted content then has to be manually deleted, which in a lot of pages is very time consuming!

    I need to prevent this from happening.

    Many thanks in advance ๐Ÿ™‚

    #198124
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Made some modifications on your site.
    Can you clear your browser cache and try again to check if it’s all fine?

    -Rui

    #198126
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Just realized now that you are not using yet the latest version. That version already has this Tabs deletion fixed.

    -Rui

    #198127
    dekkydog
    Member
    Post count: 59

    Hi Rui,
    Great! that seems to have solved the problem. Thanks ๐Ÿ™‚

    Whats the MODIFICATION I need to apply to my LIVE site?

    Thanks

    #198129
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Check my latest reply, if you update to the latest version this won’t happen.
    If you don’t want to upgrade the live site, let me know so I can provide you the changes.

    -Rui

    #198133
    dekkydog
    Member
    Post count: 59

    Hi Rui,
    thats great!

    Can you provide me with the MODS I may NOT upgrade to the latest version YET.

    Cheers ๐Ÿ™‚

    #198166
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    In that case you can copy the file page-builder.js located at Dante/swift-framework/page-builder/assets/js to the same place in the production server.

    I changed this jQuery function

    jQuery('.ui-tabs-nav .delete_tab').click( function() {
    				var tab_name = jQuery(this).parent().text(),
    					tab_pos = jQuery(this).closest('li').index(),
    					alt_tab_pos = tab_pos + 1;;
    								
    				var answer = confirm ("If you'd like to delete the '"+tab_name+"' tab, press OK. If you want to return, press Cancel.");
    				if ( answer ) {
    				    tab_id = $tabs.find( '.ui-tabs-nav li:eq(' + tab_pos + ')' ).attr( 'aria-controls' );
    					$tabs.find('.ui-tabs-nav li:eq('+tab_pos+')').remove();
    					if ($tabs.closest('.spb_sortable').hasClass('spb_tour')) {
    					$tabs.find('#tab-'+alt_tab_pos).remove();
    					$tabs.find('#tab-slide-'+alt_tab_pos).remove();
    					} else {
    			       	$tabs.find( '#' + tab_id ).remove();
    			       	$tabs.find( '#tab-' + tab_id ).remove();
    					}
    					//
    					$tabs.tabs('refresh');
    					save_spb_html();
    				}
    				return false;
    			});

    -Rui

    #198168
    dekkydog
    Member
    Post count: 59

    Thanks very much Rui ๐Ÿ™‚

    #198183
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad I could help.
    -Rui

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register