Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.29k stars 2.74k forks source link

Allow hiding the left menu (again) #6174

Closed PlanPc closed 5 years ago

PlanPc commented 7 years ago

Bug

Environment

Report

    • No more is possible to pay a customer bill, passing the amount with Javascript, as it was before in 3.9.3. Why? It was helpy, it showed a little arrow to copy the amount in the payment field.
    • Also the vertical menu doesn´t collapse anymore.., also a javascript function, i think. Now the vertical menu is fixed, ever. Also was a help for small screens where users can decide to show it or not averytime a page was load.

More extrange is that option to enable or disable Javascript with Ajax, exist the same thn before in https://dolibarr_folder/admin/ihm.php but seems to do nothing at all.

Thank you

rdoursenaud commented 7 years ago

Please refrain from mixing multiple issues. This makes it hard for maintainers to track the status.

Anyway,

  1. This feature is an unsupported hidden feature: INVOICE_AUTO_FILLJS. See: https://wiki.dolibarr.org/index.php/Setup_Other That being said, it works for me on the latest Dolibarr 4.0.3 once set to true.

  2. Don't remember seeing this feature. Which theme were you using?

  3. ?! This still works as intended to me. Yet, we're in 2017 and the whole web is relying on JavaScript more and more, so is Dolibarr. With the move towards HTML5 and EcmaScript being part of the spec, you can expect this to be ancient history in a not-so-distant future ;)

PlanPc commented 7 years ago

Thank you Raphaël and sorry for the mixing, I thought it was all related to same javascript function with the last version 4, but I take note for next issues, if any.

1. Just added INVOICE_AUTO_FILLJS and the little arrow is back again, Thank you.

2. This option was enabled / disabled here: Main page of Dolibarr, Configuration --> Enviroment, last block, then 4º line option, translated from Spanish, must be something like "Disable Javascript and Ajax functions (Recommended for blind people or text browsers)". My theme is eldy, unmodified. Have some third party modules, but tested disabling them all, one by one, and nothing change about this. When disable this option, (disables javascript), vertical menu was static (and the arrow from point 1 ceased to exist too), when enabled, vertical menu can collapse horizontally hiding to left side of screen pushing a little tab with the mouse or with shortcut: Ctrl + Left Arrow in keyboard.

Since version 4 and after upgrade to 4.0.2, this option does not change how the vertical menu works, is just always there fixed.

3. About that point..., is the first time I ear EcmaScript, I´m getting older, thank you for remind me. You are pushing Dolibarr to next level. In next days update to new 4.0.3 and try again.

Thank you a lot

Best Regards

rdoursenaud commented 7 years ago

You're welcome.

Yeah, EcmaScript is the fancy name of the standardized/uniformized/cross-platform JavaScript nothing more. It's been around for a while now. But at the end of the day it's still just JavaScript minus the various vendors' idiosyncrasies. That's why I use and favor learning this more generic term which means better global support ;) Yay for standards !

Regarding point 2, I can't seem to be able to track it down. I've been using and developing for Dolibarr since a few years now but I've never seen this.

rdoursenaud commented 7 years ago

Ok, I've tracked down the removal at commit 7ce82aaf1616b01be3593c1267f99a776cc4e130.

Upon closer inspection, this code was experimental in Dolibarr 3.9. The configuration is hidden behind the MAIN_FEATURES_LEVEL in the menu setup > other. This explains why I never stumbled upon it. That's what you get for using experimental or unfinished features. Please keep MAIN_FEATURES_LEVEL at 0 or be prepared to face the consequences!

Now it says in the commit message that it's going to be replaced by a better solution. Any ETA @eldy?

rdoursenaud commented 7 years ago

The rest of the issues being fixed I'll rename the issue to track the progresses on the left menu hiding feature request. Sounds good?

PlanPc commented 7 years ago

Sounds pretty good !, good work!

Can´t remember my first dolibarr, I think it was 3.2.2 but that option (disable javascript) has always be there, now with 4.0.2 still, but not using MAIN_FEATURES_LEVEL=1, just zero

Best Regards my friend

atm-maxime commented 5 years ago

I close this issue as there's a task to work on the look and feel here : #9429