diff --git a/UI/Settings/MediaManagement/FileManagement/FileManagementView.js b/UI/Settings/MediaManagement/FileManagement/FileManagementView.js index 314a7b79e..af28961b3 100644 --- a/UI/Settings/MediaManagement/FileManagement/FileManagementView.js +++ b/UI/Settings/MediaManagement/FileManagement/FileManagementView.js @@ -2,11 +2,20 @@ define( [ 'marionette', - 'Mixins/AsModelBoundView' + 'Mixins/AsModelBoundView', + 'Mixins/AutoComplete' ], function (Marionette, AsModelBoundView) { var view = Marionette.ItemView.extend({ - template: 'Settings/MediaManagement/FileManagement/FileManagementViewTemplate' + template: 'Settings/MediaManagement/FileManagement/FileManagementViewTemplate', + + ui: { + recyclingBin: '.x-path' + }, + + onShow: function () { + this.ui.recyclingBin.autoComplete('/directories'); + } }); return AsModelBoundView.call(view); diff --git a/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html b/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html index 95b53a1a2..02938c4e0 100644 --- a/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html +++ b/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html @@ -40,4 +40,15 @@ + +