Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

L5 fix

Open bmartus opened this issue 10 years ago • 4 comments

This is a temporary fix while you work through your rewrite that you've mentioned in some issue comments. It's based on a fork of bart/datatable l5 branch, with a couple more fixes to make it work out of the box, as far as I can tell.

bmartus avatar Mar 06 '15 02:03 bmartus

@Chumper

Any plans on merging this into the master?

Thanks

hillelcoren avatar Mar 29 '15 11:03 hillelcoren

@hillelcoren @bmartus

Hi guys, i'm getting a very weird issue when a follow this steps in my L5 project.

The views are returned encoded, like this:

 <table id="pEOW3vx2" class="table table-bordered">
    <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con2" />
            </colgroup>
    <thead>
    <tr>
                <th align="center" valign="middle" class="head1">id</th>
                <th align="center" valign="middle" class="head2">Nombre</th>
                <th align="center" valign="middle" class="head3">Slug</th>
            </tr>
    </thead>
        <tbody>
        </tbody>
</table>

    <script type="text/javascript">
    jQuery(document).ready(function(){

        // dynamic table
        oTable = jQuery('#pEOW3vx2').dataTable({
            "sPaginationType": "full_numbers",
            "bProcessing": false,
                "sPaginationType": "full_numbers",
                "bProcessing": false,
                "sAjaxSource": "http:\/\/localhost:8000\/test",
                "bServerSide": true,


        });

    oTable.addClass('table-striped ');

    });
</script>

I tried everything but i can't figure it out. Can you please help me?

yamilrevilla avatar Apr 02 '15 19:04 yamilrevilla

Are you using the new blade tag syntax around the Datatable tags? {!! !!}

bmartus avatar Apr 02 '15 19:04 bmartus

@yamilrevilla I comfirmed as @bmartus mention above {!! !!}. It's work.

minkbear avatar Apr 10 '15 10:04 minkbear