Modal title appearing after close ('x') button

Modal title appearing after close ('x') button

bigbenchrobbigbenchrob Posts: 26Questions: 9Answers: 2

I've recently made changes to my Editor configuration and the following behaviour has popped up:

<div data-dte-e="head" class="DTE_Header modal-header">
    <button class="close">x</button>
    <div class="DTE_Header_Content"><h5 class="modal-title">New record</h5></div>
</div>

i.e. in the Editor modal dialog, the title appears to the right of the close button.

I initialize the Create button as follows:

new $.fn.dataTable.Buttons( datatable, {
    buttons: [
        {
            text: 'New...',
            action: function ( e, dt, node, config ) {
                  
                bb.editor.create(
                    {
                        submitOnReturn: false,
                        title: '<h5 class="modal-title">New record</h5>'
                    }
                );
            }
         }
     ]
} );

datatable.buttons().container()
    .appendTo( $('.buttonSlot', datatable.table().container() ) );

Allan, I can supply a page link and password if you need it.

Thanks in advance.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Yes please - could you post it here or send me a PM (click my name above and then Send message). It sounds like a CSS issue, but I'm not sure where. Are your CSS files up to date to match the version of the Editor Javascript?

    Allan

  • bigbenchrobbigbenchrob Posts: 26Questions: 9Answers: 2

    Have PM'd. Editor JS and CSS files are from the same folder (Editor-PHP-1.7.4)

This discussion has been closed.