Fix media manager search issues
authorMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2016 17:08:45 +0000 (18:08 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2016 17:08:45 +0000 (18:08 +0100)
wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Base.js
wcfsetup/install/files/js/WoltLab/WCF/Media/Manager/Search.js

index 3a55f4ecbd46a2ec91eb8b12fc8c6849ed40921b..e21f3a4a694c57e004d3d212c672aab7f43b5eb3 100644 (file)
@@ -2,22 +2,22 @@
  * Provides the media manager dialog.
  * 
  * @author     Matthias Schmidt
- * @copyright  2001-2015 WoltLab GmbH
+ * @copyright  2001-2016 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @module     WoltLab/WCF/Media/Manager/Base
  */
 define(
        [
-               'Core',                     'Dictionary',               'Dom/ChangeListener',      'Dom/Traverse',
-               'Dom/Util',                 'EventHandler',             'Language',                'List',
-               'Permission',               'Ui/Dialog',                'Ui/Notification',         'WoltLab/WCF/Controller/Clipboard',
-               'WoltLab/WCF/Media/Editor', 'WoltLab/WCF/Media/Upload', 'WoltLab/WCF/Media/Search'
+               'Core',                     'Dictionary',               'Dom/ChangeListener',              'Dom/Traverse',
+               'Dom/Util',                 'EventHandler',             'Language',                        'List',
+               'Permission',               'Ui/Dialog',                'Ui/Notification',                 'WoltLab/WCF/Controller/Clipboard',
+               'WoltLab/WCF/Media/Editor', 'WoltLab/WCF/Media/Upload', 'WoltLab/WCF/Media/Manager/Search'
        ],
        function(
-               Core,                        Dictionary,                 DomChangeListener,         DomTraverse,
-               DomUtil,                     EventHandler,               Language,                  List,
-               Permission,                  UiDialog,                   UiNotification,            Clipboard,
-               MediaEditor,                 MediaUpload,                MediaSearch
+               Core,                        Dictionary,                 DomChangeListener,                 DomTraverse,
+               DomUtil,                     EventHandler,               Language,                          List,
+               Permission,                  UiDialog,                   UiNotification,                    Clipboard,
+               MediaEditor,                 MediaUpload,                MediaManagerSearch
        )
 {
        "use strict";
@@ -204,7 +204,7 @@ define(
                                EventHandler.add('com.woltlab.wcf.clipboard', 'com.woltlab.wcf.media', this._clipboardAction.bind(this));
                        }
                        
-                       this._search = new MediaSearch(this);
+                       this._search = new MediaManagerSearch(this);
                        
                        if (!listItems.length) {
                                this._search.hideSearch();
index b64d292041c63497dab08b93a5774ff399bcae41..fa1c08c6c51c763fda103a5a58d879f31d56bc07 100644 (file)
@@ -2,7 +2,7 @@
  * Provides the media search for the media manager.
  *
  * @author     Matthias Schmidt
- * @copyright  2001-2015 WoltLab GmbH
+ * @copyright  2001-2016 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @module     WoltLab/WCF/Media/Manager/Search
  */
@@ -13,7 +13,7 @@ define(['Ajax', 'Core', 'Dom/Traverse', 'Dom/Util', 'Language', 'WoltLab/WCF/Med
         * @constructor
         */
        function MediaManagerSearch(mediaManager) {
-               MediaSearch.call();
+               MediaSearch.call(this);
                
                this._mediaManager = mediaManager;
                this._searchMode = false;