mirror of https://github.com/jumpserver/jumpserver
Force merge
commit
374dfbdac2
|
@ -132,6 +132,7 @@ div.dataTables_wrapper div.dataTables_filter,
|
||||||
};//onload;
|
};//onload;
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
<<<<<<< HEAD
|
||||||
$('#modal').modal({
|
$('#modal').modal({
|
||||||
show: false,
|
show: false,
|
||||||
backdrop: 'static',
|
backdrop: 'static',
|
||||||
|
@ -168,6 +169,22 @@ div.dataTables_wrapper div.dataTables_filter,
|
||||||
$('#editable_length').before("<a href=\"{% url 'assets:asset-create' %}\" class=\"btn btn-sm btn-primary custom \"> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>");
|
$('#editable_length').before("<a href=\"{% url 'assets:asset-create' %}\" class=\"btn btn-sm btn-primary custom \"> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>");
|
||||||
$('#editable').before(oTags);
|
$('#editable').before(oTags);
|
||||||
},
|
},
|
||||||
|
=======
|
||||||
|
var oTags = document.getElementById("ydxbd");
|
||||||
|
var table = $('#editable').DataTable({
|
||||||
|
"aLengthMenu": [[10, 25, 50, -1], ["10", "25", "50", "all"]],
|
||||||
|
"iDisplayLength":25,
|
||||||
|
"aaSorting": [[7, "asc"]],
|
||||||
|
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] }],
|
||||||
|
"bAutoWidth": false,
|
||||||
|
"language": {"url": "/static/js/plugins/dataTables/i18n/zh-hans.json"},
|
||||||
|
"dom": '<"custom">lftip',
|
||||||
|
"initComplete": function() {
|
||||||
|
//alert( 'DataTables has finished its initialisation.' );
|
||||||
|
$('#editable_length').before("<a href=\"{% url 'assets:asset-create' %}\" class=\"btn btn-sm btn-primary custom \"> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>");
|
||||||
|
$('#editable').before(oTags);
|
||||||
|
},
|
||||||
|
>>>>>>> 534321d1aa42f0853083876b807d0258dafc0b0c
|
||||||
columns: [
|
columns: [
|
||||||
{data: "checkbox"},
|
{data: "checkbox"},
|
||||||
{data: "id"},
|
{data: "id"},
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li id="">
|
<li id="terminal">
|
||||||
<a href="{% url 'terminal:terminal-list' %}">
|
<a href="{% url 'terminal:terminal-list' %}">
|
||||||
<i class="fa fa-desktop"></i><span class="nav-label">{% trans 'Terminal' %}</span><span class="label label-info pull-right"></span>
|
<i class="fa fa-desktop"></i><span class="nav-label">{% trans 'Terminal' %}</span><span class="label label-info pull-right"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue