From b53405c97330efe6393c55c642d07640428f86d3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 16 Jun 2015 15:37:39 +0000 Subject: [PATCH] Add property "data" into taglist-email for setting extra info into taglist item --- etemplate/js/et2_widget_taglist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index 2eeab537eb..1f0cb9158b 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -261,7 +261,7 @@ var et2_taglist = et2_selectbox.extend( { var label = jQuery('').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('').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;