Add style dragHandle
This commit is contained in:
parent
258f260399
commit
9e93042302
@ -18,20 +18,27 @@
|
||||
* $Id$
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery(".imgup").hide();
|
||||
jQuery(".imgdown").hide();
|
||||
/* jQuery(".imgup").hide(); */
|
||||
/* jQuery(".imgdown").hide(); */
|
||||
jQuery(".lineupdown").removeAttr('href');
|
||||
jQuery("#objectline").tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
var roworder = cleanSerialize(jQuery("#objectline").tableDnDSerialize());
|
||||
var element = "<?php echo $object->table_element_line; ?>";
|
||||
jQuery.get("<?php echo DOL_URL_ROOT; ?>/core/ajaxrow.php?roworder="+roworder+"&element="+element);
|
||||
}
|
||||
},
|
||||
dragHandle: "tdlineupdown"
|
||||
});
|
||||
jQuery(".tdlineupdown").hover(function() {
|
||||
jQuery(this).addClass('showDragHandle');
|
||||
}, function() {
|
||||
jQuery(this).removeClass('showDragHandle');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
</td>
|
||||
|
||||
<?php if ($num > 1) { ?>
|
||||
<td align="center">
|
||||
<td align="center" class="tdlineupdown">
|
||||
<?php if ($i > 0) { ?>
|
||||
<a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=up&rowid='.$line->id; ?>">
|
||||
<?php echo img_up(); ?>
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
</td>
|
||||
|
||||
<?php if ($num > 1) { ?>
|
||||
<td align="center">
|
||||
<td align="center" class="tdlineupdown">
|
||||
<?php if ($i > 0) { ?>
|
||||
<a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=up&rowid='.$line->id; ?>">
|
||||
<?php echo img_up(); ?>
|
||||
|
||||
@ -151,6 +151,9 @@ form {
|
||||
padding: 0em 0em 0em 0em;
|
||||
margin: 0em 0em 0em 0em;
|
||||
}
|
||||
.showDragHandle {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
|
||||
@ -154,7 +154,9 @@ form {
|
||||
padding: 0em 0em 0em 0em;
|
||||
margin: 0em 0em 0em 0em;
|
||||
}
|
||||
|
||||
.showDragHandle {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles de positionnement des zones */
|
||||
|
||||
@ -153,6 +153,9 @@ form
|
||||
padding: 0px 0px 0px 0px;
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
.showDragHandle {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
|
||||
@ -141,6 +141,9 @@ form
|
||||
padding: 0em 0em 0em 0em;
|
||||
margin: 0em 0em 0em 0em;
|
||||
}
|
||||
.showDragHandle {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user