manager: remove JS to populate slug field (#54649)
It is not used anymore, as slug field are not shown in creation forms for OUs and Roles.
This commit is contained in:
parent
da6013b67b
commit
bf360318d4
|
@ -184,24 +184,6 @@
|
|||
}
|
||||
return true;
|
||||
});
|
||||
/* Prepopulate slug fields */
|
||||
$('#id_slug').data('_changed', false);
|
||||
$(document).on('change', '#id_slug', function (e) {
|
||||
$(e.target).data('_changed', true);
|
||||
});
|
||||
$(document).on('gadjo:dialog-loaded', function (e, form) {
|
||||
if ($('#id_slug').val()) {
|
||||
$('#id_slug').data('_changed', true);
|
||||
}
|
||||
});
|
||||
$(document).on('keyup', '#id_name', function (e) {
|
||||
var $this = $(this);
|
||||
var $target = $(e.target);
|
||||
var $slug = $('#id_slug');
|
||||
if (! $slug.data('_changed')) {
|
||||
$slug.val(URLify($target.val()));
|
||||
}
|
||||
});
|
||||
var timer;
|
||||
$('#search-form').on('input propertychange change', 'input,select', function (e) {
|
||||
var $form = $('#search-form');
|
||||
|
|
Loading…
Reference in New Issue