0001-manager-do-not-populate-slug-field-if-it-s-not-empty.patch
src/authentic2/manager/static/authentic2/manager/js/manager.js | ||
---|---|---|
186 | 186 |
}); |
187 | 187 |
/* Prepopulate slug fields */ |
188 | 188 |
$('#id_slug').data('_changed', false); |
189 |
if ($('#id_slug').val()) { |
|
190 |
$('#id_slug').data('_changed', true); |
|
191 |
} |
|
189 | 192 |
$(document).on('change', '#id_slug', function (e) { |
190 | 193 |
$(e.target).data('_changed', true); |
191 | 194 |
}); |
192 |
- |