Commit Graph
736 Commits
Author SHA1 Message Date
Jacques Le Roux f6ce9d9b52 Fixed:Access the online help in Rainbow themes
(OFBIZ-10222)

As reported by Dmitriy Tsyganok on GitHub we missed the Help Icon

Thanks: Dmitriy Tsyganok 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824732 13f79535-47bb-0310-9956-ffa450edef68
2018-02-19 10:49:25 +00:00
Julien Nicolas 06a0fb6f7f Improve: merge all less files for rainbowstone theme to one.
OFBIZ-6881

Main less source code will be contained in the main-theme less file that will be included by color theme less files.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824321 13f79535-47bb-0310-9956-ffa450edef68
2018-02-15 15:07:22 +00:00
Julien Nicolas 44d651dd0a Fixed:Access the online help in Rainbow themes
(OFBIZ-10222)
Thanks to Jacques LEROUX to find this missing button

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1824314 13f79535-47bb-0310-9956-ffa450edef68
2018-02-15 14:31:21 +00:00
Jacques Le Roux f613a8a255 Fixed: Rainbow theme: bug in avatar.ftl when the last name does not exist
(OFBIZ-10177)

Both 1st and last names must be present else it's confusing and better to show 
the username


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821965 13f79535-47bb-0310-9956-ffa450edef68
2018-01-23 08:34:04 +00:00
Taher A. Alkhateeb bf25f54b0f Implemented: renamed the common theme directory from "common" to "common-theme"
(OFBIZ-10175)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821789 13f79535-47bb-0310-9956-ffa450edef68
2018-01-21 12:40:46 +00:00
Jacques Le Roux 06ce36db36 Fixed: Replace Asm select plugin with Select2.
(OFBIZ-10113)

Completes r1821268(same possible userLogin missing in SetMultipleSelectJsList.ftl

Thanks Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821390 13f79535-47bb-0310-9956-ffa450edef68
2018-01-17 15:51:58 +00:00
Jacques Le Roux 6b16075b03 Fixed: Replace Asm select plugin with Select2.
(OFBIZ-10113)

I found this error in trunk demo error.log

2018-01-16 15:45:48,684 |jsse-nio-8443-exec-3 |FreeMarkerWorker              |E| null
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> userLogin  [in template 
"component://common-theme/template/includes/SetMultipleSelectJs.ftl" at line 32, column 20]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${userLogin.lastLocale!"en"}  [in template 
"component://common-theme/template/includes/SetMultipleSelectJs.ftl" at line 32, column 18]
----

This fixes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821268 13f79535-47bb-0310-9956-ffa450edef68
2018-01-16 16:59:57 +00:00
Jacques Le Roux 6036b9540d Forgot to commit themes/README.md also updateWiki.bat still starts from root
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821057 13f79535-47bb-0310-9956-ffa450edef68
2018-01-13 11:02:12 +00:00
Jacques Le Roux 19d9b3ca30 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 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821001 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 15:47:47 +00:00
Jacques Le Roux 0459bf6e23 Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

Fix my previous commits, there is no themes webapp so no URL at 
/themes/common/webapp/images/ofbiz_logo.png
It's only images/ofbiz_logo.png

Also I previously wrongly changed from
VT_HDR_IMAGE_Url
not
VT_HDR_IMAGE_URL
now fixed


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820982 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 13:49:09 +00:00
Jacques Le Roux e454f2871d Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

Fix my previous commits, there is no themes webapp so no URL at 
/themes/common/webapp/images/ofbiz_logo.png
It's only images/ofbiz_logo.png


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820980 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 13:31:38 +00:00
Jacques Le Roux 9247eef6bd Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

The ofbiz_logo.png and ofbiz_logo.ico are now in theme but for Tomahawk which
has still it's own version but not really used I'd say. 

So apart for tomahawk/css/style.css which uses a relative path (not sure why)
this replaces the locations for these files in theme files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820961 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 10:37:28 +00:00
Jacques Le Roux e95d277c7d No functional change, this should be 8 not 12 (that I use locally)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820790 13f79535-47bb-0310-9956-ffa450edef68
2018-01-10 21:03:12 +00:00
Jacques Le Roux 254164350f No functional change, forgot to put the license and a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820658 13f79535-47bb-0310-9956-ffa450edef68
2018-01-09 13:11:31 +00:00
Akash Jain 8e6b300279 Reverted: Revision #1816270 not able to add a option with empty key in drop-down, (OFBIZ-9759)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819947 13f79535-47bb-0310-9956-ffa450edef68
2018-01-03 10:43:36 +00:00
Jacques Le Roux 0dceeb7983 Improved: Make the number of initially visible applications in main menu a
(OFBIZ-10132)

Currently the number of initially visible applications is hardcoded to 8 in 
TopAppBar.ftl

Completes r1819800 thankd to Deepak on dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819805 13f79535-47bb-0310-9956-ffa450edef68
2018-01-02 12:07:51 +00:00
Jacques Le Roux cfc3a63231 Improved: Make the number of initially visible applications in main menu a
(OFBIZ-10132)

Currently the number of initially visible applications is hardcoded to 8 in 
TopAppBar.ftl

This temporarily do it by putting an appMax properties in a 
common/config/rainbowstone.properties file. 
Putting it in themes/common/config/rainbowstone.properties does not work yet.
I have to find why, WIP in relation with OFBIZ-7073

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819800 13f79535-47bb-0310-9956-ffa450edef68
2018-01-02 10:36:49 +00:00
Jacques Le Roux aed04caf35 Fixed: Encoding issue while exporting CSV
(OFBIZ-10109)

While migrating widget.properties values in ThemeData.xml, "xml" encoder is 
added for template "screencsv" which was not persent in the properties file. 
By this, special character are not supported in CSV file.

Steps to generate: accounting/control/TrialBalance?organizationPartyId=Company
Click on Inventory Valuation report.
Export report as CSV.

Thanks: Aman Agrawal

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819598 13f79535-47bb-0310-9956-ffa450edef68
2017-12-30 13:51:20 +00:00
Taher A. Alkhateeb 0a34f341d1 Fixed: apply correct RTL on tab bar items in flatgrey and rainbowstone themes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819499 13f79535-47bb-0310-9956-ffa450edef68
2017-12-29 17:29:52 +00:00
Michael Brohl f36b38f42f Improved: Useful parameter usage extension and small fix of
getDependentDropdownValues in miscAjaxFunctions.js.
(OFBIZ-10103)

Thanks Kyra Pritzel-Hentley for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819139 13f79535-47bb-0310-9956-ffa450edef68
2017-12-23 11:35:57 +00:00
Deepak Dixit febf3bc496 Improved: Replace Masked Input Plugin with jQuery-Mask-Plugin. (OFBIZ-9493)
Thanks Aditya Shamra for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819117 13f79535-47bb-0310-9956-ffa450edef68
2017-12-23 08:31:33 +00:00
Deepak Dixit a89057c141 Improved: Replace Inline js with External js in makeHyperlinkString macro (OFBIZ-9852)
Thanks Aditya Sharma for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819113 13f79535-47bb-0310-9956-ffa450edef68
2017-12-23 06:37:27 +00:00
Deepak Dixit 9a181f85db Improved: Used jquery-migrate-3.0.0.min.js, Thanks Aditya Sharma for reporting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818648 13f79535-47bb-0310-9956-ffa450edef68
2017-12-19 11:05:07 +00:00
Deepak Dixit dc8180b333 Improved: Removed empty css attribute
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818611 13f79535-47bb-0310-9956-ffa450edef68
2017-12-18 19:06:40 +00:00
Deepak Dixit d24c956bf9 Improved: Moved plugins js from images to common/js (OFBIZ-5776)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818600 13f79535-47bb-0310-9956-ffa450edef68
2017-12-18 18:16:09 +00:00
Jacques Le Roux 1b9094d4b2 Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Updates JGrowl  from 1.4.1 to 1.4.6

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818580 13f79535-47bb-0310-9956-ffa450edef68
2017-12-18 14:48:04 +00:00
Deepak Dixit 7e19de9966 Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818003 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 12:03:17 +00:00
Deepak Dixit 63258e90f8 Reverted r#1817989, workign fine locally, reverted for now will check and commit again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817998 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 10:42:32 +00:00
Deepak Dixit d1f85a7e5d Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817989 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 09:21:33 +00:00
Jacques Le Roux 4842997323 Improved: Inconsistent styling in Tomahawk theme
(OFBIZ-9906)

Improves the misleading background color on tomahawk themed screens. 
I am providing the patch for correcting styling in Tomahawk theme for order 
history and compDocs tree screen.

Thanks: Ayushi Rathod

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817747 13f79535-47bb-0310-9956-ffa450edef68
2017-12-11 07:34:25 +00:00
Jacques Le Roux e1a6545926 No functional changes. Correctly handles licenses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817478 13f79535-47bb-0310-9956-ffa450edef68
2017-12-08 10:07:25 +00:00
Jacques Le Roux e89a96ad5d Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Adds an image folder in jQuery UI

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817061 13f79535-47bb-0310-9956-ffa450edef68
2017-12-04 05:34:09 +00:00
Jacques Le Roux 8021fd3717 Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Includes following changes
jQuery UI upgraded to 1.12.1
Included CSS files to theme properties and screens.

Manually added datepicker-en.js and datepicker-it-CH.js a new candidate added 
it to jsLanguageFilesMapping
Updated defaultDateTime path of dateTime picker it was having path of 
timepicker files.

I18n files for datepicker renamed from jquery.ui.datepicker- to datepicker- 
as comes with the JQuery ui package so that we don’t have to rename files 
manually everytime we upgrade.
https://github.com/jquery/jquery-ui/tree/master/ui/i18n
Can’t get jquery-ui-i18n.js file though it was not used either.

I have not updated jQuery.cookie-1.4.0.js as it is related to jstree and we will 
update & move it when we will update jstree.

Jeditable 1.7.2 upgraded to 1.7.3

I feel JQuery ui should also be in plugins folder with other JQuery plugin

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817026 13f79535-47bb-0310-9956-ffa450edef68
2017-12-03 10:15:55 +00:00
Jacques Le Roux db2b231475 Improved: Replace Rainbow OFBiz logo
(OFBIZ-10034)

Still uses ofbiz-simple-white.svg for screen width under 1232px

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816934 13f79535-47bb-0310-9956-ffa450edef68
2017-12-02 08:07:16 +00:00
Jacques Le Roux 821d3f583c Improved: Replace Rainbow OFBiz logo
(OFBIZ-10034)

Creates a copy of https://ofbiz.apache.org/images/OFBiz-logo.png into a svg file 
for  use in Rainbow theme

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816933 13f79535-47bb-0310-9956-ffa450edef68
2017-12-02 07:50:23 +00:00
Jacques Le Roux 95b17d4d23 Improved: The main logo in screen upper part shows distorted
(OFBIZ-9990)

Fixes this issue in Tomahawk and Flat Grey themes by using ofbiz_logo.png, 
instead of the old logo deprecated ofbiz_logo.gif 

While at it use the same logo everywhere it's possible. It was needed for links 
to http://ofbiz.apache.org/images/ofbiz_logo.gif which no longer exists 
(actually seems only used for tests so could stay like that but better not refer 
to it anyway)

Also use this logo for Bluelight theme where it fits. 

It could not be used in Rainbow themes because they are using a Scalable Vector 
Graphics file (ofbiz-white.svg) that can't be replaced by the new png logo file
BTW this file still uses a TM symbol instead of a ®

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816897 13f79535-47bb-0310-9956-ffa450edef68
2017-12-01 18:45:50 +00:00
Jacques Le Roux 142d45f18b Improved: Move the hhfacility application to Attic
(OFBIZ-10032)

This removes the hhfacility application and jQuery mobile which was only used by
the hhfacility application 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816879 13f79535-47bb-0310-9956-ffa450edef68
2017-12-01 15:36:26 +00:00
Jacques Le Roux 03b9065bed No functional change, better use console.error() here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816706 13f79535-47bb-0310-9956-ffa450edef68
2017-11-30 10:53:13 +00:00
Deepak Dixit b50183daee Improved: Use console.log instead of alert to show error message if setLocaleFromBrowser return error.
setLocaleFromBrowser request called setUserLocale.js and its executed for each request, 
   auth is set true for setLocaleFromBrowser service so it return error if it executed from login screen. 
   Still need to refine way to set setLocaleFromBrowser as this request executed with each time when page refreshed.

This is an improvement related with OFBIZ-9264

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816537 13f79535-47bb-0310-9956-ffa450edef68
2017-11-28 10:38:06 +00:00
Jacques Le Roux cf3bd442c5 Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Upgrades jQuery Timepicker Addon to 1.6.3 

We missed the css file.
This also removes ms and time zone

Thanks: Aditya 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816421 13f79535-47bb-0310-9956-ffa450edef68
2017-11-27 10:36:59 +00:00
Jacques Le Roux b7127e1ed2 Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Upgrades jQuery Timepicker Addon to 1.6.3 
https://github.com/trentrichardson/jQuery-Timepicker-Addon/
 jQuery UI Slider Access comes with JQuery Timepicker addon package.
 Moved localization to i18n (as comes with package) & made changes accordingly
 Working well with even jQuery UI 1.10.

Steps to verify:
https://localhost:8443/ordermgr/control/ListQuoteRoles?quoteId=CQ0001
https://localhost:8443/example/control/FormWidgetExamples
https://localhost:8443/catalog/control/EditProduct

Interestingly it supports Millisecond, Microsecond and Time Zone too.

jleroux: as required with such changes I ran the createJsLanguageFileMapping 
service to create or update the JsLanguageFilesMapping class content (this is
documented in JsLanguageFileMappingCreator class
We got some new ones:
-fa.js
-lv.js
-mk.js
-sl.js
-sq.js
but lost CZ (not quite sure about that one, I vaguely remember something we
discussed with Aditya )

Thanks: Aditya 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816377 13f79535-47bb-0310-9956-ffa450edef68
2017-11-26 10:18:36 +00:00
Deepak Dixit d9c5a659cf Improved: Added ofbiz_logo.ping (OFBIZ-9760)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816275 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 09:24:00 +00:00
Deepak Dixit f49941a90e Improved: Moved imagemanagement plugin from images to common/js/plugins (OFBIZ-5776)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816271 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 09:00:52 +00:00
Akash Jain f72331bd49 Improved: Fiscal Gl type is reflecting twice in drop-down of Cost Centers, applied patch from jira issue (OFBIZ-9759)
Thanks, Tejas Khanna for reporting the issue and Ritesh Kumar for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816270 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 08:46:52 +00:00
Deepak Dixit f515e0489f Improved: Replace Inline js with External js in renderDisplayField macro (OFBIZ-9843)
Thanks Aditya Sharma for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816269 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 08:40:17 +00:00
Deepak Dixit 91102312f1 Reverted: Jquery ui upgrade breaks some of js functions, reverting r1816242 and r1816241, we will upgrade dependent code and then will upgrade jquery ui from 1.10 to 1.12 (OFBIZ-9978)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816263 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 06:50:51 +00:00
Jacques Le Roux b437a2d7f5 Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Removes unused and useless jCarousel

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816243 13f79535-47bb-0310-9956-ffa450edef68
2017-11-24 16:48:06 +00:00
Jacques Le Roux dcde4a925b Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Upgrades jquery-ui from 1.10.3 to 1.12.1, missed the min in last commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816242 13f79535-47bb-0310-9956-ffa450edef68
2017-11-24 16:43:40 +00:00
Jacques Le Roux 204ab5c88e Improved: Upgrade Jquery 1.11.0 to JQuery 3.2.1
(OFBIZ-9978)

Upgrades jquery-ui from 1.10.3 to 1.12.1

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816241 13f79535-47bb-0310-9956-ffa450edef68
2017-11-24 16:37:25 +00:00
Jacques Le Roux 058680c52e Fixed: OpenStreetMap geolocation no longer works
(OFBIZ-9991)

Easily checked at 
//demo-trunk.ofbiz.apache.org/example/control/ExampleOsmGeoLocationPointSet1

It "works" but OpenStreetMap images are not showing. Locally there are no errors 
in log. So hopefully it could be just an OpenStreetMap needed setting change.

Since Pierre said it worked, I searched the reason.

Turned it out it was a CSP exception in my main browser (FF) due to a setting
I'm not sure about. But anyway there are CSP errors reported in browsers tools
console.

I tried to use OpenLayers-4.5.0.js but it did not work as is.

I then tried in GeoLocation.ftl to follow the officially way to use the 
Official OSM tileset as protocol-independent URLs

-        map.addLayer(new OpenLayers.Layer.OSM());
+        <#-- Official OSM tileset as protocol-independent URLs -->
+        <#noparse>
+        map.addLayer(new OpenLayers.Layer.OSM(['
//a.tile.openstreetmap.org/${z}/${x}/${y}.png',
'//b.tile.openstreetmap.org/${z}/${x}/${y}.png',
'//c.tile.openstreetmap.org/${z}/${x}/${y}.png']));
+        </#noparse>

But for a reason I did not get it did not work either. 

Out of desperation this fixes it by using a modified 
OpenLayers-2.13.1-modified-for-CSP-.js lib 

Thanks: Pierre Smits for initially saying it was working in Safari

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816105 13f79535-47bb-0310-9956-ffa450edef68
2017-11-23 07:16:25 +00:00