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

This commit is contained in:
Hadi Nategh 2015-06-16 15:37:39 +00:00
parent de4a3d90c7
commit b53405c973

View File

@ -261,7 +261,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;
},
@ -572,6 +572,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;