Skip to content
Snippets Groups Projects
Commit 49507751 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: hide arrows if edit line

parent c4774bdb
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
......@@ -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 -->
\ No newline at end of file
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