Log Message: |
Improved: Replace Asm select plugin with Select2.
(OFBIZ-10113)
Current Asm Select Plugin
http://www.ryancramer.com/journal/entries/asmselect_v104/
can be replaced with Select2 (https://select2.org/).
* Select2 has much better community support on GitHub with 386 contributors
while Asm Select Plugin is handled by Ryan Cramer on http://www.ryancramer.com/.
* Select2 has 37 releases while Asm select has very few releases yet.
* Both the plugin has MIT license.
Refer https://select2.org/ and
https://github.com/select2/select2 for more features and other information.
Added i18n support so added logic in JsLanguageFileMappingCreator and
JsLanguageFilesMapping accordingly.
Added some custom CSS as the Select2 seems to be too fancy in accordance
with the current OFBiz themes
Verify:
Multiple drop-downs field in FormWidgetExamples.
https://localhost:8443/example/control/FormWidgetExamples
Find Request page with StatusId , CustRequestId
https://localhost:8443/ordermgr/control/FindRequest
I have replaced the plugins though I feel the implementation of select multiple
js code is to be reviewed & refactored. I will pick when I am done with all my
current tasks if I get some consensus.
Thanks: Aditya
|