Fixed bug #11983: TCEforms suggest has no search indicator, credits Steffen Gebert
authorIngo Renner <ingo.renner@typo3.org>
Thu, 17 Sep 2009 17:55:09 +0000 (17:55 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Thu, 17 Sep 2009 17:55:09 +0000 (17:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5954 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/jsfunc.tceforms_suggest.js
t3lib/tceforms/class.t3lib_tceforms_suggest.php
typo3/stylesheet.css

index a0e39b6..cb97a11 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-09-17  Ingo Renner  <ingo@typo3.org>
+
+       * Fixed bug #11983: TCEforms suggest has no search indicator, credits Steffen Gebert
 
 2009-09-17  Rupert Germann  <rupi@gmx.li>
 
index 2c2312e..b6c3bb9 100644 (file)
@@ -62,10 +62,11 @@ TCEForms.Suggest = Class.create({
                                paramName: 'value',
                                minChars: (minimumCharacters ? minimumCharacters : this.minimumCharacters),
                                updateElement: this.addElementToList.bind(this),
-                               parameters: 'ajaxID=t3lib_TCEforms_suggest::searchRecord&table=' + table + '&field=' + field + '&uid=' + uid + '&pid=' + pid
+                               parameters: 'ajaxID=t3lib_TCEforms_suggest::searchRecord&table=' + table + '&field=' + field + '&uid=' + uid + '&pid=' + pid,
+                               indicator: objectId + 'SuggestIndicator'
                        }
                );
-               
+
                $(this.suggestField).observe('focus', this.checkDefaultValue.bind(this));
                $(this.suggestField).observe('keydown', this.checkDefaultValue.bind(this));
        },
index 88954de..2d78bcd 100644 (file)
@@ -70,6 +70,7 @@ class t3lib_TCEforms_Suggest {
                <div class="' . $containerCssClass . '" id="' . $suggestId . '">
                        <input type="text" id="' . $fieldname . 'Suggest" value="' .
                                $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.findRecord') . '" class="' . $this->cssClass . '-search" />
+                       <div class="' . $this->cssClass . '-indicator" style="display: none;" id="' . $fieldname . 'SuggestIndicator"><img src="' . $GLOBALS['BACK_PATH'] . 'gfx/spinner.gif" alt="Searching..." /></div>
                        <div class="' . $this->cssClass . '-choices" style="display: none;" id="' . $fieldname . 'SuggestChoices"></div>
 
                </div>';
index fbc1996..9ff8eb5 100644 (file)
@@ -1168,6 +1168,12 @@ input.typo3-TCEforms-suggest-search {
        margin: 1px 10px 0 0;
 }
 
+div.typo3-TCEforms-suggest-indicator {
+       position: relative;
+       left: 230px;
+       top: -18px;
+}
+
 div.typo3-TCEforms-suggest-choices {
        position: absolute;
        width: 250px;
@@ -2966,13 +2972,3 @@ div {
        border: 1px dotted #666;
 }
 */
-
-
-
-
-
-
-
-
-
-