Fixed bug #17129: Minor styling issues with live search
authorJeff Segars <jsegars@alumni.rice.edu>
Fri, 21 Jan 2011 04:18:24 +0000 (04:18 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Fri, 21 Jan 2011 04:18:24 +0000 (04:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10190 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/search/class.t3lib_search_livesearch.php
typo3/js/livesearch.js
typo3/sysext/t3skin/stylesheets/visual/toolbar_livesearch.css

index ecceb51..501d308 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-21  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #17129: Minor styling issues with live search
+
 2011-01-21  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #17167: Cache ExtDirect::getAPI calls
index 925a1ed..cb97012 100644 (file)
@@ -54,7 +54,7 @@ class t3lib_search_livesearch {
        /**
         * @var integer
         */
-       const RECORD_TITLE_MAX_LENGTH = 37;
+       const RECORD_TITLE_MAX_LENGTH = 28;
 
        /**
         * @var string
index a5116cb..fa46341 100644 (file)
@@ -36,6 +36,7 @@ TYPO3.BackendLiveSearch = Ext.extend(Ext.form.ComboBox, {
        emptyText: null,
        enableKeyEvents: true,
        helpTitle: null,
+       hideTrigger: true,
        itemSelector: 'div.search-item-title',
        listAlign : 'tr-br',
        listClass: 'live-search-list',
@@ -102,6 +103,13 @@ TYPO3.BackendLiveSearch = Ext.extend(Ext.form.ComboBox, {
                                        TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue());
                                }
                        }
+               },
+               keyup : function() {
+                       if ((this.getValue() == this.emptyText) || (this.getValue() == '')) {
+                               this.setHideTrigger(true);
+                       } else {
+                               this.setHideTrigger(false);
+                       }
                }
        },
 
@@ -267,6 +275,7 @@ TYPO3.BackendLiveSearch = Ext.extend(Ext.form.ComboBox, {
 
        reset : function() {
            this.originalValue = this.emptyText;
+               this.setHideTrigger(true);
                TYPO3.BackendLiveSearch.superclass.reset.apply(this, arguments);
        },
 
index 8629fa0..14fab06 100644 (file)
@@ -10,6 +10,7 @@ Backend  Live Search
 }
 
 .t3-icon-input-clear {
+       cursor: pointer;
        position: absolute;
        top: 0px;
        right: 20px;