Issue #960Opened March 17, 2018by rajatkumcom0 reactions

Uncaught SyntaxError: Unexpected end of input

Question

Code SnippetTEXT
blockManager.add('design', {
    label: 'design',
    content: {
        script: function () {
                $.ajax({
                    url: parent.DrupalBasePath + '/api/v1/rnode_operations',
                    method: 'POST',
                    dataType: 'json'
                }).done(function( data ) {
                    Example.show('Custom button clicked');
                    console.log( data )
                });
            var dialog = parent.bootbox.dialog({
                title: 'Flyiers',
                message: '<p>Fliers</p>',
                buttons: {
                    noclose: {
                        label: 'Load More',
                        className: 'btn-info',
                        callback: function(){
                            Example.show('Custom button clicked');
                            return false;
                        }
                    }
                }
            });
        },
        style: {
          width: '100px',
          height: '100px',
          'background-color': 'red',
        }
    },
    attributes: {class: 'gjs-fonts gjs-f-image gjs-block gjs-one-bg gjs-four-color-h'},
});

Answers (1)

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.