From 0ee82feab7e33b6aece660deeae769285684df5b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 28 Sep 2013 21:17:20 -0700 Subject: [PATCH] Recycling bin setting is available on Media Management (advanced) New: Optional recycling bin on Media Management (advanced) --- .../FileManagement/FileManagementView.js | 13 +++++++++++-- .../FileManagement/FileManagementViewTemplate.html | 11 +++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) 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 @@ + +
+ + +
+ + + + +
+