Fix: hide arrows if edit line
This commit is contained in:
parent
c4774bdbb7
commit
4950775197
@ -1368,7 +1368,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
* Lines
|
* Lines
|
||||||
*/
|
*/
|
||||||
// We disable with $conf->global->MAIN_FEATURES_LEVEL because until dev is finished.
|
// 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');
|
include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE -->
|
<!-- BEGIN PHP TEMPLATE -->
|
||||||
|
|
||||||
|
<?php if ($_GET['action'] != 'editline') { ?>
|
||||||
<script>
|
<script>
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
jQuery(".imgup").hide();
|
jQuery(".imgup").hide();
|
||||||
@ -41,5 +42,14 @@ jQuery(document).ready(function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<?php } else { ?>
|
||||||
|
<script>
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
jQuery(".imgup").hide();
|
||||||
|
jQuery(".imgdown").hide();
|
||||||
|
jQuery(".lineupdown").removeAttr('href');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<!-- END PHP TEMPLATE -->
|
<!-- END PHP TEMPLATE -->
|
||||||
Loading…
Reference in New Issue
Block a user