mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修改html bug
parent
827246ed4c
commit
e20444983d
|
@ -90,7 +90,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
authFieldsDisplay();
|
authFieldsDisplay();
|
||||||
$(auto_generate_key).change(function () {
|
$(auto_generate_key).change(function () {
|
||||||
authFieldsDisplay();
|
authFieldsDisplay();
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -157,7 +157,7 @@ function bindToCluster(clusters) {
|
||||||
|
|
||||||
jumpserver.cluster_selected = {};
|
jumpserver.cluster_selected = {};
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });.on('select2:select', function(evt) {
|
$('.select2').select2();.on('select2:select', function(evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.cluster_selected[data.id] = data.text;
|
jumpserver.cluster_selected[data.id] = data.text;
|
||||||
}).on('select2:unselect', function(evt) {
|
}).on('select2:unselect', function(evt) {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
}).on('click', '.field-tag', function() {
|
}).on('click', '.field-tag', function() {
|
||||||
changeField(this);
|
changeField(this);
|
||||||
}).on('click', '#change_all', function () {
|
}).on('click', '#change_all', function () {
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
{# $("#id_tags").select2({#}
|
{# $("#id_tags").select2({#}
|
||||||
{# tags: true,#}
|
{# tags: true,#}
|
||||||
{# maximumSelectionLength: 8 //最多能够选择的个数#}
|
{# maximumSelectionLength: 8 //最多能够选择的个数#}
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
$('.select2-system-user').select2();
|
$('.select2-system-user').select2();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ function initTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
|
|
||||||
$('.select2.asset-select').select2()
|
$('.select2.asset-select').select2()
|
||||||
.on('select2:select', function(evt) {
|
.on('select2:select', function(evt) {
|
||||||
|
|
|
@ -181,7 +181,7 @@ function initTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on("select2:select", function (evt) {
|
.on("select2:select", function (evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.assets_selected[data.id] = data.text;
|
jumpserver.assets_selected[data.id] = data.text;
|
||||||
|
|
|
@ -151,7 +151,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
})
|
})
|
||||||
.on('click', '.btn-delete-cluster', function () {
|
.on('click', '.btn-delete-cluster', function () {
|
||||||
var name = "{{ cluster.name }}";
|
var name = "{{ cluster.name }}";
|
||||||
|
|
|
@ -125,7 +125,7 @@ function initAssetsTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on("select2:select", function (evt) {
|
.on("select2:select", function (evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.assets_selected[data.id] = data.text;
|
jumpserver.assets_selected[data.id] = data.text;
|
||||||
|
|
|
@ -212,7 +212,7 @@ function updateSystemUserCluster(clusters) {
|
||||||
}
|
}
|
||||||
jumpserver.cluster_selected = {};
|
jumpserver.cluster_selected = {};
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on('select2:select', function(evt) {
|
.on('select2:select', function(evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.cluster_selected[data.id] = data.text;
|
jumpserver.cluster_selected[data.id] = data.text;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -79,7 +79,7 @@
|
||||||
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
|
|
||||||
$('.input-group.date').datepicker({
|
$('.input-group.date').datepicker({
|
||||||
format: "yyyy-mm-dd",
|
format: "yyyy-mm-dd",
|
||||||
|
|
|
@ -190,7 +190,7 @@ function updateSystemUser(system_users) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on('select2:select', function(evt) {
|
.on('select2:select', function(evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.system_users_selected[data.id] = data.text;
|
jumpserver.system_users_selected[data.id] = data.text;
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block custom_head_css_js %}
|
{% block custom_head_css_js %}
|
||||||
<link href="{% static "css/plugins/dataTables/datatables.min.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/datatables/datatables.min.css" %}" rel="stylesheet">
|
||||||
<link href="{% static "css/plugins/select2/select2.min.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/select2/select2.min.css" %}" rel="stylesheet">
|
||||||
<script src="{% static "js/plugins/select2/select2.full.min.js" %}"></script>
|
<script src="{% static "js/plugins/select2/select2.full.min.js" %}"></script>
|
||||||
<script src="{% static "js/plugins/dataTables/dataTables.min.js" %}"></script>
|
<script src="{% static "js/plugins/datatables/datatables.min.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
<link href="{% static 'css/plugins/sweetalert/sweetalert.css' %}" rel="stylesheet">
|
<link href="{% static 'css/plugins/sweetalert/sweetalert.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'css/style.css' %}" rel="stylesheet">
|
<link href="{% static 'css/style.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'css/plugins/vaildator/jquery.validator.css' %}" rel="stylesheet">
|
<link href="{% static 'css/plugins/vaildator/jquery.validator.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'css/plugins/dataTables/datatables.min.css' %}" rel="stylesheet">
|
<link href="{% static 'css/plugins/datatables/datatables.min.css' %}" rel="stylesheet">
|
||||||
<!-- scripts -->
|
<!-- scripts -->
|
||||||
<script src="{% static 'js/jquery-2.1.1.js' %}"></script>
|
<script src="{% static 'js/jquery-2.1.1.js' %}"></script>
|
||||||
<script src="{% static 'js/plugins/sweetalert/sweetalert.min.js' %}"></script>
|
<script src="{% static 'js/plugins/sweetalert/sweetalert.min.js' %}"></script>
|
||||||
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
||||||
<script src="{% static 'js/plugins/dataTables/datatables.min.js' %}"></script>
|
<script src="{% static 'js/plugins/datatables/datatables.min.js' %}"></script>
|
|
@ -57,7 +57,7 @@
|
||||||
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
|
|
||||||
$('.input-group.date').datepicker({
|
$('.input-group.date').datepicker({
|
||||||
format: "yyyy-mm-dd",
|
format: "yyyy-mm-dd",
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
<script src="{% static 'js/plugins/datepicker/bootstrap-datepicker.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
|
|
||||||
$('.input-group.date').datepicker({
|
$('.input-group.date').datepicker({
|
||||||
format: "yyyy-mm-dd",
|
format: "yyyy-mm-dd",
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
}).on('click', '.field-tag', function() {
|
}).on('click', '.field-tag', function() {
|
||||||
changeField(this);
|
changeField(this);
|
||||||
}).on('click', '#change_all', function () {
|
}).on('click', '#change_all', function () {
|
||||||
|
|
|
@ -253,7 +253,7 @@ function updateUserGroups(groups) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on('select2:select', function(evt) {
|
.on('select2:select', function(evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.groups_selected[data.id] = data.text;
|
jumpserver.groups_selected[data.id] = data.text;
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
var options = {
|
var options = {
|
||||||
ele: $('#user_assets_table'),
|
ele: $('#user_assets_table'),
|
||||||
buttons: [],
|
buttons: [],
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
{% block custom_head_css_js %}
|
{% block custom_head_css_js %}
|
||||||
<link href="{% static "css/plugins/select2/select2.min.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/select2/select2.min.css" %}" rel="stylesheet">
|
||||||
<link href="{% static "css/plugins/sweetalert/sweetalert.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/sweetalert/sweetalert.css" %}" rel="stylesheet">
|
||||||
<link href="{% static "css/plugins/dataTables/datatables.min.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/datatables/datatables.min.css" %}" rel="stylesheet">
|
||||||
<link href="{% static "css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" %}" rel="stylesheet">
|
<link href="{% static "css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" %}" rel="stylesheet">
|
||||||
<script src="{% static "js/plugins/select2/select2.full.min.js" %}"></script>
|
<script src="{% static "js/plugins/select2/select2.full.min.js" %}"></script>
|
||||||
<script src="{% static "js/plugins/sweetalert/sweetalert.min.js" %}"></script>
|
<script src="{% static "js/plugins/sweetalert/sweetalert.min.js" %}"></script>
|
||||||
<script src="{% static "js/plugins/dataTables/dataTables.min.js" %}"></script>
|
<script src="{% static "js/plugins/datatables/datatables.min.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
<div class="wrapper wrapper-content animated fadeInRight">
|
||||||
|
@ -150,7 +150,7 @@ function updateGroupMember(users) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
.on('select2:select', function(evt) {
|
.on('select2:select', function(evt) {
|
||||||
var data = evt.params.data;
|
var data = evt.params.data;
|
||||||
jumpserver.users_selected[data.id] = data.text;
|
jumpserver.users_selected[data.id] = data.text;
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
{% block custom_foot_js %}
|
{% block custom_foot_js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('.select2').select2({ dropdownAutoWidth : true, width: 'auto' });
|
$('.select2').select2();
|
||||||
var options = {
|
var options = {
|
||||||
ele: $('#user_assets_table'),
|
ele: $('#user_assets_table'),
|
||||||
buttons: [],
|
buttons: [],
|
||||||
|
|
Loading…
Reference in New Issue