Skip to content
Snippets Groups Projects
Commit 9e930423 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add style dragHandle

parent 258f2603
No related branches found
No related tags found
No related merge requests found
......@@ -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.'&amp;action=up&amp;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.'&amp;action=up&amp;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;
}
/* ============================================================================== */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment