Resources/public/js/map/src/entrypoint.js
/**
     * Display a modal containing a textarea with the json
     *
     * @param json
     */
Display a modal containing a textarea with the json
@param json
Display a modal containing a textarea with the json @param json
function displayJsonModal (json) {
        var $modal = $(
            '<div class="tms_message_modal modal fade" tabindex="-1">' +
                '<div class="modal-dialog">' +
                    '<div class="modal-content">' +
                        '<div class="modal-header">' +
                            '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>' +
                            '<h3>Json</h3>' +
                        '</div>' +
                        '<textarea readonly class="modal-json modal-body">' + json + '</textarea>' +
                        '<div class="modal-footer"></div>' +
                    '<div>' +
                '<div>' +
            '</div>'
        );
        $modal.modal('show');
        $modal.on('hidden.bs.modal', function () {
            $(this).remove();
        });
    }
function displayJsonModal ( json ) { var $modal = $ ( '<div class="tms_message_modal modal fade" tabindex="-1">' + '<div class="modal-dialog">' + '<div class="modal-content">' + '<div class="modal-header">' + '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>' + '<h3>Json</h3>' + '</div>' + '<textarea readonly class="modal-json modal-body">' + json + '</textarea>' + '<div class="modal-footer"></div>' + '<div>' + '<div>' + '</div>' ) ; $modal . modal ( 'show' ) ; $modal . on ( 'hidden.bs.modal' , function ( ) { $ ( this ) . remove ( ) ; } ) ; }
Display a modal containing a textarea with the json
 @param json
Display a modal containing a textarea with the json @param json