Merge branch '3.0'
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:56:04 +0000 (15:56 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:56:04 +0000 (15:56 +0200)
# Conflicts:
# wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Search.js

1  2 
wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Search.js
wcfsetup/install/files/style/ui/media.scss
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 8936933d6e27a04f7d2c113f608a85214ebe3129,624560f3d1d3f1c50a0ed73689bbfeda864949c5..b347c0787577f4dbbafa9a1524e125ab77de9b97
@@@ -111,20 -96,18 +111,22 @@@ define(['Ajax', 'Core', 'Dom/Traverse'
                },
                
                /**
 -               * Sends an AJAX request to fetch search results.
 +               * Shows the search string threshold error.
                 */
 -              _search: function() {
 -                      this._searchMode = true;
 -                      
 -                      Ajax.api(this, {
 -                              parameters: {
 -                                      imagesOnly: this._mediaManager.getOption('imagesOnly'),
 -                                      mode: this._mediaManager.getMode(),
 -                                      searchString: this._input.value
 -                              }
 -                      });
 +              _showStringThresholdError: function() {
 +                      var innerInfo = DomTraverse.childByClass(this._input.parentNode.parentNode, 'innerInfo');
 +                      if (innerInfo) {
 +                              elShow(innerInfo);
 +                      }
 +                      else {
 +                              innerInfo = elCreate('p');
 +                              innerInfo.className = 'innerInfo';
-                               innerInfo.textContent = Language.get('wcf.media.search.info.searchStringThreshold');
++                              innerInfo.textContent = Language.get('wcf.media.search.info.searchStringThreshold', {
++                                      minSearchLength: this._mediaManager.getOption('minSearchLength')
++                              });
 +                              
 +                              DomUtil.insertAfter(innerInfo, this._input.parentNode);
 +                      }
                },
                
                /**
Simple merge
Simple merge