Author: nathangray
New Revision: 55151
URL: http://svn.stylite.de/viewvc/egroupware?rev=55151&view=rev
Log:
Instead of showing invalid email values, remove them and set a validation error then focus the value so user can keep editing.
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 19:34:20 2016
@@ -760,7 +760,15 @@
if (item.class) label.addClass(item.class);
if (typeof item.title != ‘undefined’) label.attr(‘title’, item.title);
if (typeof item.data != ‘undefined’) label.attr(‘data’, item.data);
-
if (!valid) {
-
label.addClass('ui-state-error');
-
window.setTimeout(jQuery.proxy(function() {
-
this.taglist.removeFromSelection(item);
-
this.set_validation_error(egw.lang("'%1' has an invalid format",item.label));
-
this.taglist.input.val(item.label).focus();
-
},this),1);
-
return null;
-
}
return label;
}
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