Same but using style instead of hard coded cell
This commit is contained in:
parent
1f598960c3
commit
7c890a0daa
@ -1376,7 +1376,7 @@ class CommonObject
|
|||||||
print '<td align="right" width="50">'.$langs->trans('TotalHTShort').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('TotalHTShort').'</td>';
|
||||||
print '<td width="10"> </td>';
|
print '<td width="10"> </td>';
|
||||||
print '<td width="10"> </td>';
|
print '<td width="10"> </td>';
|
||||||
print '<td width="10"> </td>';
|
print '<td class="tdlineupdown" nowrap="nowrap"> </td>'; // No width to allow autodim
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,11 +34,11 @@ jQuery(document).ready(function(){
|
|||||||
},
|
},
|
||||||
dragHandle: "tdlineupdown"
|
dragHandle: "tdlineupdown"
|
||||||
});
|
});
|
||||||
jQuery("#objectline tr").hover(function() {
|
jQuery(".tdlineupdown").hover(function() {
|
||||||
jQuery(this.cells[8]).addClass("showDragHandle");
|
jQuery(this).addClass('showDragHandle');
|
||||||
}, function() {
|
}, function() {
|
||||||
jQuery(this.cells[8]).removeClass("showDragHandle");
|
jQuery(this).removeClass('showDragHandle');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -151,8 +151,18 @@ form {
|
|||||||
padding: 0em 0em 0em 0em;
|
padding: 0em 0em 0em 0em;
|
||||||
margin: 0em 0em 0em 0em;
|
margin: 0em 0em 0em 0em;
|
||||||
}
|
}
|
||||||
.showDragHandle {
|
|
||||||
cursor: move;
|
.dragClass {
|
||||||
|
background: #b3c5cc;
|
||||||
|
}
|
||||||
|
td.showDragHandle {
|
||||||
|
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/1updownarrow.png'; ?>);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
.tdlineupdown {
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -158,13 +158,16 @@ form {
|
|||||||
.dragClass {
|
.dragClass {
|
||||||
background: #b3c5cc;
|
background: #b3c5cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.showDragHandle {
|
td.showDragHandle {
|
||||||
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/1updownarrow.png'; ?>);
|
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/1updownarrow.png'; ?>);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
.tdlineupdown {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
/* Styles de positionnement des zones */
|
/* Styles de positionnement des zones */
|
||||||
|
|||||||
@ -153,8 +153,18 @@ form
|
|||||||
padding: 0px 0px 0px 0px;
|
padding: 0px 0px 0px 0px;
|
||||||
margin: 0px 0px 0px 0px;
|
margin: 0px 0px 0px 0px;
|
||||||
}
|
}
|
||||||
.showDragHandle {
|
|
||||||
cursor: move;
|
.dragClass {
|
||||||
|
background: #b3c5cc;
|
||||||
|
}
|
||||||
|
td.showDragHandle {
|
||||||
|
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/1updownarrow.png'; ?>);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
.tdlineupdown {
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -141,9 +141,20 @@ form
|
|||||||
padding: 0em 0em 0em 0em;
|
padding: 0em 0em 0em 0em;
|
||||||
margin: 0em 0em 0em 0em;
|
margin: 0em 0em 0em 0em;
|
||||||
}
|
}
|
||||||
.showDragHandle {
|
|
||||||
cursor: move;
|
.dragClass {
|
||||||
|
background: #b3c5cc;
|
||||||
}
|
}
|
||||||
|
td.showDragHandle {
|
||||||
|
background-image: url(<?php echo DOL_URL_ROOT.'/theme/eldy/img/1updownarrow.png'; ?>);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
.tdlineupdown {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user