diff --git a/apps/assets/templates/assets/_system_user.html b/apps/assets/templates/assets/_system_user.html
index 528e271e6..6e3b81658 100644
--- a/apps/assets/templates/assets/_system_user.html
+++ b/apps/assets/templates/assets/_system_user.html
@@ -55,7 +55,7 @@
{% bootstrap_field form.private_key_file layout="horizontal" %}
-
+
{% trans 'Quick update' %}
@@ -236,6 +236,12 @@ function updateSystemUserNode(nodes) {
}
jumpserver.nodes_selected = {};
$(document).ready(function () {
+ if($('#id_protocol_type').text() === 'rdp'){
+ $('#id_quick_update').addClass('hidden');
+ $('#id_sudo').addClass('hidden');
+ $('#id_shell').addClass('hidden');
+ }
+
$('.select2').select2()
.on('select2:select', function(evt) {
var data = evt.params.data;
diff --git a/apps/assets/templates/assets/system_user_update.html b/apps/assets/templates/assets/system_user_update.html
index 46ef8d6a3..a8a5c7483 100644
--- a/apps/assets/templates/assets/system_user_update.html
+++ b/apps/assets/templates/assets/system_user_update.html
@@ -15,10 +15,9 @@
{% endblock %}
-{% block custom_foot_js %}
-
-{% endblock %}
\ No newline at end of file
+ protocolChange();
+ });
+{% endblock %}