Add style dragHandle

This commit is contained in:
Laurent Destailleur 2010-09-18 15:34:06 +00:00
parent 258f260399
commit 9e93042302
7 changed files with 25 additions and 7 deletions

View File

@ -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>

View File

@ -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(); ?>

View File

@ -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(); ?>

View File

@ -151,6 +151,9 @@ form {
padding: 0em 0em 0em 0em;
margin: 0em 0em 0em 0em;
}
.showDragHandle {
cursor: move;
}
/* ============================================================================== */

View File

@ -154,7 +154,9 @@ form {
padding: 0em 0em 0em 0em;
margin: 0em 0em 0em 0em;
}
.showDragHandle {
cursor: move;
}
/* ============================================================================== */
/* Styles de positionnement des zones */

View File

@ -153,6 +153,9 @@ form
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.showDragHandle {
cursor: move;
}
/* ============================================================================== */

View File

@ -141,6 +141,9 @@ form
padding: 0em 0em 0em 0em;
margin: 0em 0em 0em 0em;
}
.showDragHandle {
cursor: move;
}
/* ============================================================================== */