Files @ 1f3e993156e4
Branch filter:

Location: kallithea/kallithea/templates/admin/my_account/my_account_watched.html

Mads Kiilerich
js: omit redundant type="text/javascript"

We already used plain '<script>' in several places.

https://www.w3.org/TR/html52/semantics-scripting.html#element-attrdef-script-type :
"Authors should omit the attribute, instead of redundantly giving a JavaScript
MIME type."
<h4>${_('Repositories You are Watching')}</h4>

<div>
    <table class="table" id="datatable_list_wrap" width="100%"></table>
</div>

<script>
  var data = ${h.js(c.data)};
  var myDataTable = $("#datatable_list_wrap").DataTable({
        data: data.records,
        columns: [
            {data: "raw_name", "visible": false, searchable: false},
            {data: "name", "orderData": 1, title: ${h.jshtml(_('Name'))}},
            {data: "last_rev_raw", "visible": false, searchable: false},
            {data: "last_changeset", "orderData": 3, title: ${h.jshtml(_('Tip'))}, searchable: false},
        ],
        order: [[2, "asc"]],
        dom: '<"dataTables_left"f><"dataTables_right"ip>t',
        pageLength: 100
    });
</script>