Add property "data" into taglist-email for setting extra info into taglist item

This commit is contained in:
Hadi Nategh 2015-06-16 12:18:26 +00:00
parent 657e387526
commit b8d94441f6

View File

@ -278,7 +278,7 @@ var et2_taglist = et2_selectbox.extend(
{
var label = jQuery('<span>').text(item.label);
if (typeof item.title != 'undefined') label.attr('title', item.title);
return label;
},
@ -589,6 +589,7 @@ var et2_taglist_email = et2_taglist.extend(
var label = jQuery('<span>').text(item.label);
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');
return label;