Fix: hide arrows if edit line

This commit is contained in:
Regis Houssin 2010-10-01 16:19:53 +00:00
parent c4774bdbb7
commit 4950775197
2 changed files with 11 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ if ($id > 0 || ! empty($ref))
* Lines
*/
// We disable with $conf->global->MAIN_FEATURES_LEVEL because until dev is finished.
if ($conf->global->MAIN_FEATURES_LEVEL == 2 && $conf->use_javascript_ajax && $object->statut == 0 && $_GET['action'] != 'editline')
if ($conf->global->MAIN_FEATURES_LEVEL == 2 && $conf->use_javascript_ajax && $object->statut == 0)
{
include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php');
}

View File

@ -21,6 +21,7 @@
<!-- BEGIN PHP TEMPLATE -->
<?php if ($_GET['action'] != 'editline') { ?>
<script>
jQuery(document).ready(function(){
jQuery(".imgup").hide();
@ -41,5 +42,14 @@ jQuery(document).ready(function(){
});
});
</script>
<?php } else { ?>
<script>
jQuery(document).ready(function(){
jQuery(".imgup").hide();
jQuery(".imgdown").hide();
jQuery(".lineupdown").removeAttr('href');
});
</script>
<?php } ?>
<!-- END PHP TEMPLATE -->