mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 20:04:30 +01:00
Implement new kind of taglist to show thumbnail of set value
This commit is contained in:
parent
f4a8d74469
commit
8b7f6012d6
@ -82,7 +82,7 @@
|
||||
<description value="If you wish to have randomly selected images you may upload multiple images."/>
|
||||
</vbox>
|
||||
<vbox>
|
||||
<taglist id="newsettings[login_background_file]" width="100%" allowFreeEntries="true" empty_label="Upload your background image or enter the URL"/>
|
||||
<taglist-thumbnail id="newsettings[login_background_file]" width="100%" allowFreeEntries="true" empty_label="Upload your background image or enter the URL"/>
|
||||
<file width="100%" label="upload" onchange="app.admin.login_background_update"/>
|
||||
</vbox>
|
||||
</row>
|
||||
|
@ -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('<span>').attr('title',item.label);
|
||||
jQuery('<img class="et2_taglist_thumbnail"/>').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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user