diff --git a/admin/templates/default/config.xet b/admin/templates/default/config.xet index ac83b65b1b..843786ec7f 100644 --- a/admin/templates/default/config.xet +++ b/admin/templates/default/config.xet @@ -82,7 +82,7 @@ - + diff --git a/api/js/etemplate/et2_widget_taglist.js b/api/js/etemplate/et2_widget_taglist.js index 15ae39d4d7..f05b632abe 100644 --- a/api/js/etemplate/et2_widget_taglist.js +++ b/api/js/etemplate/et2_widget_taglist.js @@ -1310,6 +1310,26 @@ var et2_taglist_category = (function(){ "use strict"; return et2_taglist.extend( });}).call(this); et2_register_widget(et2_taglist_category, ["taglist-cat"]); +/** + * Taglist customized specificlly for image url shown as thumbnail, + * + */ +var et2_taglist_thumbnail = (function(){ "use strict"; return et2_taglist.extend( +{ + init:function () + { + this._super.apply(this, arguments); + }, + + selectionRenderer: function(item) + { + var tag = jQuery('').attr('title',item.label); + jQuery('').attr('src', item.label).prependTo(tag); + return tag; + } +});}).call(this); +et2_register_widget(et2_taglist_thumbnail, ["taglist-thumbnail"]); + /** * et2_taglist_ro is the readonly implementation of the taglist. diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index 522c718d95..6ba4df5a20 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -1087,6 +1087,9 @@ ul.et2_link_string { .et2_taglist, .et2_taglist > div.ms-ctn { min-height: 23px; } +img.et2_taglist_thumbnail, table.egwGridView_grid .et2_taglist .et2_taglist_thumbnail { + height:100px; +} /* Toggle single / multiple */ .et2_taglist_toggle { position: relative;