Bug #24652 » 17129.diff

Administrator Admin, 2011-01-20 17:35

View differences:

t3lib/search/class.t3lib_search_livesearch.php (working copy)
54 54
	/**
55 55
	 * @var integer
56 56
	 */
57
	const RECORD_TITLE_MAX_LENGTH = 37;
57
	const RECORD_TITLE_MAX_LENGTH = 28;
58 58

  
59 59
	/**
60 60
	 * @var string
typo3/js/livesearch.js (working copy)
36 36
	emptyText: null,
37 37
	enableKeyEvents: true,
38 38
	helpTitle: null,
39
	hideTrigger: true,
39 40
	itemSelector: 'div.search-item-title',
40 41
	listAlign : 'tr-br',
41 42
	listClass: 'live-search-list',
......
102 103
					TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue());
103 104
				}
104 105
			}
106
		},
107
		keyup : function() {
108
			if ((this.getValue() == this.emptyText) || (this.getValue() == '')) {
109
				this.setHideTrigger(true);
110
			} else {
111
				this.setHideTrigger(false);
112
			}
105 113
		}
106 114
	},
107 115

  
......
267 275

  
268 276
	reset : function() {
269 277
	    this.originalValue = this.emptyText;
278
		this.setHideTrigger(true);
270 279
		TYPO3.BackendLiveSearch.superclass.reset.apply(this, arguments);
271 280
	},
272 281

  
typo3/sysext/t3skin/stylesheets/visual/toolbar_livesearch.css (working copy)
10 10
}
11 11

  
12 12
.t3-icon-input-clear {
13
	cursor: pointer;
13 14
	position: absolute;
14 15
	top: 0px;
15 16
	right: 20px;
(5-5/5)