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