mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
Updated code for image overlay on grid entries
This commit is contained in:
parent
7de4a37624
commit
151da7e0bd
@ -1674,12 +1674,18 @@ function egwGridViewRow_doUpdateData(_immediate)
|
|||||||
});
|
});
|
||||||
overlayCntr.append(icon);
|
overlayCntr.append(icon);
|
||||||
|
|
||||||
|
if (this.item.iconOverlay.length > 0)
|
||||||
|
{
|
||||||
|
var overlayCntr2 = $(document.createElement("span"));
|
||||||
|
overlayCntr2.addClass("overlayContainer");
|
||||||
for (var i = 0; i < this.item.iconOverlay.length; i++)
|
for (var i = 0; i < this.item.iconOverlay.length; i++)
|
||||||
{
|
{
|
||||||
var overlay = $(document.createElement("img"));
|
var overlay = $(document.createElement("img"));
|
||||||
overlay.addClass("overlay");
|
overlay.addClass("overlay");
|
||||||
overlay.attr("src", this.item.iconOverlay[i]);
|
overlay.attr("src", this.item.iconOverlay[i]);
|
||||||
overlayCntr.append(overlay);
|
overlayCntr2.append(overlay);
|
||||||
|
}
|
||||||
|
overlayCntr.append(overlayCntr2);
|
||||||
}
|
}
|
||||||
|
|
||||||
icon.addClass("icon");
|
icon.addClass("icon");
|
||||||
|
@ -652,13 +652,29 @@ Preferences tabs
|
|||||||
-khtml-user-select: none;
|
-khtml-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.egwGridView_grid span.iconOverlayContainer img.overlay {
|
.egwGridView_grid span.overlayContainer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -2px;
|
right: -2px;
|
||||||
bottom: -2px;
|
bottom: -2px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.egwGridView_grid span.iconContainer {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.egwGridView_grid span.overlayContainer img.overlay {
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.egwGridView_grid img.icon {
|
.egwGridView_grid img.icon {
|
||||||
@ -696,13 +712,6 @@ Preferences tabs
|
|||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.egwGridView_grid span.iconContainer {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.egwGridView_grid span.caption {
|
.egwGridView_grid span.caption {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user