Author: ralfbecker
New Revision: 55149
URL: http://svn.stylite.de/viewvc/egroupware?rev=55149&view=rev
Log:
active first search result in taglist, to just use enter to add it
Modified:
trunk/etemplate/js/et2_widget_taglist.js
— trunk/etemplate/js/et2_widget_taglist.js (original)
+++ trunk/etemplate/js/et2_widget_taglist.js Thu Feb 25 18:36:19 2016
@@ -144,7 +144,7 @@
{
try
{
@@ -191,7 +191,8 @@
maxSelection: this.options.maxSelection,
maxSelectionRenderer: jQuery.proxy(function(v) { this.egw().lang(‘You can not choose more then %1 item(s)!’, v); }, this),
width: this.options.width, // propagate width
-
highlight: false, // otherwise renderer have to return strings
-
selectFirst: true
}, this.lib_options);
this.taglist = this.taglist.magicSuggest(this.taglist_options);
this.$taglist = $j(this.taglist);
@@ -202,7 +203,7 @@
{
var widget = this;
this.taglist.setData(function(query) {
@@ -262,7 +263,7 @@
if (typeof options[id] == ‘object’)
{
jQuery.extend(option, options[id]);
@@ -277,6 +278,7 @@
* Custom data function to return local options if there is nothing
* typed, or query via AJAX if user typed something
*
-
-
@param {string} query
-
@returns {Array}
*/
_data: function(query) {
@@ -289,7 +291,7 @@
{
// Check options, if there’s a match there (that is not already
// selected), do not ask server
@@ -298,7 +300,7 @@
filtered.push(obj);
}
});
@@ -312,6 +314,11 @@
/**
* Handler for keyup, used to start ajax search when we like
-
-
-
-
-
@param {jQueryEvent} event
-
-
@returns {Boolean}
*/
_keyup: function(e, taglist, event) {
if(event.which === jQuery.ui.keyCode.ENTER && taglist.combobox.find(’.ms-res-item.ms-res-item-active’).length==0)
@@ -368,7 +375,7 @@
var widget = this;
this.taglist.setData(function(query) {
@@ -456,7 +463,7 @@
}
this.options.value = values;
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs