Fix: try to use div title with show/hide effect
This commit is contained in:
parent
8ab71288a6
commit
205f884ec0
@ -31,13 +31,13 @@ else if ($module == 'fichinter') { $module = 'ficheinter'; $note_private = 'note
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#hide-notes").click(function(){
|
$("#hide-notes").click(function(){
|
||||||
setShowHide(1);
|
setShowHide(1);
|
||||||
$(".notes_line").hide().removeClass("nohideobject");
|
$("#notes_bloc").hide("blind", {direction: "vertical"}, 800).removeClass("nohideobject");
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$("#show-notes").show();
|
$("#show-notes").show();
|
||||||
});
|
});
|
||||||
$("#show-notes").click(function(){
|
$("#show-notes").click(function(){
|
||||||
setShowHide(0);
|
setShowHide(0);
|
||||||
$(".notes_line").show().addClass("nohideobject");
|
$("#notes_bloc").show("blind", {direction: "vertical"}, 800).addClass("nohideobject");
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$("#hide-notes").show();
|
$("#hide-notes").show();
|
||||||
});
|
});
|
||||||
@ -52,28 +52,26 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div style="float:right; position: relative; top: 3px; right:5px;" id="hide-notes" class="linkobject<?php echo ($hide ? ' hideobject' : ''); ?>"><?php echo img_picto('', '1uparrow.png'); ?></div>
|
||||||
|
<div style="float:right; position: relative; top: 3px; right:5px;" id="show-notes" class="linkobject<?php echo ($hide ? '' : ' hideobject'); ?>"><?php echo img_picto('', '1downarrow.png'); ?></div>
|
||||||
|
<div class="liste_titre"><?php echo $langs->trans('Notes'); ?></div>
|
||||||
|
|
||||||
|
<div id="notes_bloc" class="<?php echo ($hide ? 'hideobject' : 'nohideobject'); ?>">
|
||||||
<table class="border allwidth">
|
<table class="border allwidth">
|
||||||
|
<tr>
|
||||||
<tr class="liste_titre">
|
|
||||||
<td colspan="2">
|
|
||||||
<div style="float:right;" id="hide-notes" class="linkobject<?php echo ($hide ? ' hideobject' : ''); ?>"><?php echo img_picto('', '1uparrow.png'); ?></div>
|
|
||||||
<div style="float:right;" id="show-notes" class="linkobject<?php echo ($hide ? '' : ' hideobject'); ?>"><?php echo img_picto('', '1downarrow.png'); ?></div>
|
|
||||||
<?php echo $langs->trans('Notes'); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr id="note_public_line" class="notes_line <?php echo ($hide ? 'hideobject' : 'nohideobject'); ?>">
|
|
||||||
<td width="25%" valign="top"><?php echo $form->editfieldkey("NotePublic",$note_public,$object->note_public,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
<td width="25%" valign="top"><?php echo $form->editfieldkey("NotePublic",$note_public,$object->note_public,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
||||||
<td><?php echo $form->editfieldval("NotePublic",$note_public,$object->note_public,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
<td><?php echo $form->editfieldval("NotePublic",$note_public,$object->note_public,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php if (! $user->societe_id) { ?>
|
<?php if (! $user->societe_id) { ?>
|
||||||
<tr id="note_private_line" class="notes_line <?php echo ($hide ? 'hideobject' : 'nohideobject'); ?>">
|
<tr>
|
||||||
<td width="25%" valign="top"><?php echo $form->editfieldkey("NotePrivate",$note_private,$object->note_private,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
<td width="25%" valign="top"><?php echo $form->editfieldkey("NotePrivate",$note_private,$object->note_private,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
||||||
<td><?php echo $form->editfieldval("NotePrivate",$note_private,$object->note_private,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
<td><?php echo $form->editfieldval("NotePrivate",$note_private,$object->note_private,$object,$user->rights->$module->creer,'textarea'); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</table><br>
|
</table>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
<!-- END PHP TEMPLATE -->
|
<!-- END PHP TEMPLATE -->
|
||||||
@ -1461,7 +1461,7 @@ table.liste td {
|
|||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.liste_titre, tr.liste_titre_sel
|
div.liste_titre, tr.liste_titre, tr.liste_titre_sel
|
||||||
{
|
{
|
||||||
height: 20px !important;
|
height: 20px !important;
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user