diff --git a/app/assets/javascripts/old_design/admin_procedures_modal.js b/app/assets/javascripts/old_design/admin_procedures_modal.js index 1d4c569e3..5a013cb53 100644 --- a/app/assets/javascripts/old_design/admin_procedures_modal.js +++ b/app/assets/javascripts/old_design/admin_procedures_modal.js @@ -64,10 +64,7 @@ function validatePath(path) { } function path_type_init() { - $(PROCEDURE_PATH_SELECTOR).bind('autocomplete:select', function( - ev, - suggestion - ) { - togglePathMessage(true, suggestion['mine']); + $(PROCEDURE_PATH_SELECTOR).on('autocomplete:select', function(event) { + togglePathMessage(true, event.detail['mine']); }); }