Commit Graph
534 Commits
Author SHA1 Message Date
Jacques Le Roux 4dd5da1286 A patch from Florian Montalbano for "Allow Gantt function to compute task with non-numerical ID" https://issues.apache.org/jira/browse/OFBIZ-7971
The Gantt diagram is not generated when at least one of the taks composing it has a non-numerical workEffortId (e.g. A10001).
When importing data or using duplication of workEffort, you can use such id.

How to reproduce :
- Check the Gantt diagram, it should be working fine : https://localhost:8443/projectmgr/control/ganttChart?projectId=9100 

- Create a task with a non-numerical id for the project 9100 or iImport this entry :
<entity-engine-xml>
<WorkEffort workEffortId="A1000" sequenceNum="1" workEffortTypeId="TASK" currentStatusId="PTS_CREATED" lastStatusUpdate="2007-12-14 16:45:21.831" workEffortParentId="9101" scopeEnumId="WES_PRIVATE" workEffortName="ProblemTask" estimatedStartDate="2007-12-03 00:00:00.0" estimatedCompletionDate="2007-12-05 00:00:00.0" revisionNumber="1"/>
</entity-engine-xml>

- Check the Gantt diagram again and now it's failing : https://localhost:8443/projectmgr/control/ganttChart?projectId=9100
(there is an error in the javascript console)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758101 13f79535-47bb-0310-9956-ffa450edef68
2016-08-28 10:17:04 +00:00
Jacques Le Roux 93834caafb A request from Pierre Smits for "Removal of old OFBiz images from images folder" https://issues.apache.org/jira/browse/OFBIZ-7919
There are a few OFBiz images left behind in the image folder in the image component.

jleroux: This is certainly not a major issue but I see no reasons to keep these old unused images. I'll put a note in Attic.
While doing so I decided to remove opentravelsystem_logo.jpg and also to hide the bin folder (in OFBiz root) in Windows, it was confusing!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753774 13f79535-47bb-0310-9956-ffa450edef68
2016-07-22 10:22:11 +00:00
Jacques Le Roux 0c9ef9068c Damned, it's the 2nd time I inadvertently commit this unfinished file
I remove it from repo (even if not used yet) and I'll complete this task!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753385 13f79535-47bb-0310-9956-ffa450edef68
2016-07-19 13:36:01 +00:00
Jacques Le Roux 1fbad8362c Creates a (short term) Gradle "cleanAnt" task to remove old build dirs - https://issues.apache.org/jira/browse/OFBIZ-7898
Fixes the cleanAntBuild target, Taher make me notice that I put 2 whitespaces after /. I then realised that I used build.xml instead of build in the paths. This works (tested, I was abused in my 1st test only looking for "dir /s *ofbiz*.jar" (Windows)

Anyway I'll soon replace it by a proposition from Taher



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753381 13f79535-47bb-0310-9956-ffa450edef68
2016-07-19 13:01:15 +00:00
Deepak Dixit ef0d840b39 (OFBIZ-1319) Rename selectall.js to OfbizUtil.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752898 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:41:48 +00:00
Deepak Dixit 2d033da102 (OFBIZ-1319) Rename selectall.js to OfbizUtil.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752895 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:36:33 +00:00
Ashish Vijaywargiya e1e45da5ed Applied patch from jira issue - OFBIZ-7705 - Remove Google Checkout component from specialpurpose as it was discontinued.
Thanks Ravi for removing the reference of Google Checkout from everywhere.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751393 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 04:24:53 +00:00
Deepak Dixit cb2a770d25 (OFBIZ-7350) Applied slightly modified patch jira issue.
===========================================
Manage filters in lookup auto completion
===========================================

Thanks  Charles STELTZLEN for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750555 13f79535-47bb-0310-9956-ffa450edef68
2016-06-28 18:46:50 +00:00
Jacques Le Roux e5f4abf1a7 No functional change, removes a file committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742198 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 21:15:21 +00:00
Jacques Le Roux 31ef1f9186 "Continue the work on the form widget grid element" - https://issues.apache.org/jira/browse/OFBIZ-7029
Completes in screens the changes done in forms at r1741873. I then replaced few form lists by grids, where it was possible to do it with regexp.
Also complete StatsForms.xml to use only grids and "searchList" form in ecommerce ContentForms to NOT use grid (not called in screen)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1742196 13f79535-47bb-0310-9956-ffa450edef68
2016-05-03 20:50:10 +00:00
Jacques Le Roux 5d65e6e84b A modified patch from James Young based on a an original patch from Christoph Neuroth for "Improved CMS tree: more functionality and faster for large trees" - https://issues.apache.org/jira/browse/OFBIZ-4502
We here at [Lusini|http://www.lusini.de/] did several improvements to the CMS backend to make it more usable for large CMS installations. 

* Improved performance of CMS tree
** loading nodes dynamically using AJAX
*** Created ContentJsonEvents to handle the JSON calls
** use OFBiz entity caches
** removed duplicate execution of WebSitePublishPoint.groovy
*** removed reference from controller.xml as it is not used anywhere

* Moving nodes in CMS tree possible now using drag'n'drop
** ContentJsonEvents returns updated node attributes
** Adjusted WebSiteCMSNav.ftl to update the moved node with the data from the ajax request
** Needed to replace the jstree jQuery plugin by the current version available on the jstree website

* Made nodes deleteable
** added remove to context menu
** We did not want to delete the WebSitePathAlias entities right away, so we added a fromDate and thruDate to it. 
*** extended WebSitePathAlias entity definition: added fromDate and thruDate
*** now checking for date range everywhere when accessing path aliases
*** This also allows users to publish or unpublish contents under a certain URL automatically at some time in the future. 
** created event to "delete" a node
*** thruDate of all assocs pointing to this node are set to current timestamp
*** thruDate of WebSitePathAliases pointing to this content or any contents below are set to current timestamp
*** this way nothing is actually removed from the DB and a "undo" would be possible if necessary
** extracted context menu to variable so it can be reused for all trees

* fixed missing references to uiLabels in CMS menu bar

* Activated cookie plugin so the selected node is remembered



jleroux: I made few changes
* Use of UtilGenerics.cast() in new ContentJsonEvents.java rather than @SuppressWarnings("unchecked")
* Removal of the commented out block "Lusini: disable RTE". I see no reasons why we would not use elRTE. Notably in relation with adding errors where it's currently used in trunk demo
* I changed the line 
    var unmovableSubtrees = [false, "categoryChildren_LusiniBrowseRoot", "homeContentsRoot", "merchantContentsRoot"];
    We have no such subtrees OOTB but it's good to keep the idea, I just renamed categoryChildren_LusiniBrowseRoot to categoryChildren and put an explaining comment
* I have roughly added the labels ContentWebSiteErrors, ContentWebSiteAddNewErrors and ContentWebSiteAddError, though I have a doubt about how this works. At least it's different than on trunk demo where it seems to works better (despite having uncommented out elRTE in this commit). ALso I don't remember how to add a menu worked (if it worked).
* I checked the version of jstree we use is the same than in the original patch from Christoph Neuroth. BTW at r1559769 I tried to update jstree  to jstree 3 but gave up.
* I removed the jquery.cookie.js implemnentation and replaced link in WebSiteCMSNav.ftl. I already updted to jquery.cookie-1.4.0 at r1559769

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738588 13f79535-47bb-0310-9956-ffa450edef68
2016-04-11 14:17:30 +00:00
Jacques Le Roux d71ba4d6cc Fixes an issue with css images path in ecommain.css reported by James Yong at https://issues.apache.org/jira/browse/OFBIZ-6961
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736854 13f79535-47bb-0310-9956-ffa450edef68
2016-03-28 10:10:03 +00:00
Gil Portenseigne 63e01c97f7 OFBIZ-6869 : Add properties in widget.properties, for easy customization of JGrowl alert. Thanks Jacques for the idea
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728351 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 19:18:35 +00:00
Gil Portenseigne f3dd6cbadc OFBIZ-6869 : Jgrowl enhancement for internationalization, center and speed up display, with some format/typo fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728029 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 00:38:51 +00:00
Jacques Le Roux 9bbd16e9fa Temporary fix for "UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [null] and the file/resource is [web-app_3_0.xsd]" - https://issues.apache.org/jira/browse/OFBIZ-6807
As suggested by Deepak keeps only <<web-app version="3.0">> in web.xml files instead of whole xmlns and schemaLocation. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726388 13f79535-47bb-0310-9956-ffa450edef68
2016-01-23 11:52:08 +00:00
Deepak Dixit c9cf2336ae (OFBIZ-6789) Applied patch from jira issue OFBIZ-6789
============================================================
image management cannot share images
============================================================

Thanks Wai for reporting the issue and Vaibhav for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724943 13f79535-47bb-0310-9956-ffa450edef68
2016-01-16 09:50:02 +00:00
Deepak Dixit 76742dc2bc (OFBIZ-2987) Applied slightly modified patch from OFBIZ-2987
============================================================ Html clean up of quick add page.
============================================================ 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721091 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:16:28 +00:00
Wei Zhang 3138e599d2 OFBIZ-6775 Duplicated to display jGrowl error message when open a popup dialog
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720728 13f79535-47bb-0310-9956-ffa450edef68
2015-12-18 08:19:03 +00:00
Jacques Le Roux c06e6f7f62 2 modified patches from Rahul Bhammarker for "Add session tracking mode and make cookie secure" https://issues.apache.org/jira/browse/OFBIZ-6655
Need to enhance security at web-app level. 
As per current implementation:
- The cookie containing the session identifier is not secure
- The session identifier is transmitted in the query string of the URL

To fix these issue we have to add following session config otpions in web.xml
{code}
<session-config>
	<cookie-config>
	    <http-only>true</http-only>
	    <secure>true</secure>
	</cookie-config>
	<tracking-mode>COOKIE</tracking-mode>
</session-config>
{code}

Also we need to update the web-app servlet specification from 2.3 to 3.0
{code}
<web-app version="3.0"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                            http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
{code}
https://tomcat.apache.org/whichversion.html

jleroux: these are only the framework+themes+applications patches, with 3 entries not applied


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719872 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 10:02:24 +00:00
Wei Zhang ef072df4e8 OFBIZ-6762 Show JGrowl alert when using ajax submit form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719250 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 04:06:43 +00:00
Divesh Dutta 5e7ffc0692 [OFBIZ-6709] Now when you add party content, party profile page refresh, earlier it was not refreshing. Updated uiLabelJsonObjects method's (used for jsonify ui lables) signature. Added callback function in this method to get response returned from asynchronous ajax request. After this uiLabel object is available which resolves the issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1715505 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 12:33:52 +00:00
Jacques Le Roux 50cedb1744 Implements "Improve the way default position and size lookup parameters are set" https://issues.apache.org/jira/browse/OFBIZ-6710
Inspired by Nicolas's recent work on modal-layer windows

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1712520 13f79535-47bb-0310-9956-ffa450edef68
2015-11-04 09:54:34 +00:00
Jacques Le Roux 2d47601831 An improved patch from Pierre Gaudin for "JGrowl to display alerts " https://issues.apache.org/jira/browse/OFBIZ-6023
I've been working on Jgrowl integration for a project. (https://github.com/stanlemon/jGrowl)
This allowS to display system's messages in a popup at the top of the windows even if you scroll. This is also useful for ajax call because there is no need to scroll to the top of the screen to view message.
Message can stick to the screen until it is intentionally closed by the user or not.

jleroux? as already explained in the Jira: to have it working in trunk HEAD I had to make some changes

    I put the jgrowl loading in GlobalActions rather than GlobalDecorator
    in showjGrowl() js function
        I Added a test for if (contentMessages.length) because of an error in lookups
        I did some formatting in function showjGrowl()
        I used jQuery instead of $ (same for expandAllP() and expandAll() functions)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709679 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 20:46:42 +00:00
Arun Patidar 3865ff485d [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Deepak Dixit 23d692dd3f (OFBIZ-6563) Fixed lookup party search form, used correct name for groupName field. Fix the focus-field-name from partyName to partyId as partyName is not a valid field on lookup party form. Used correct jQuery.each method in for paginationMenus. Now lookup party is working fine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1697674 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 13:43:12 +00:00
Shi Jinghai 85ab0e0eff OFBIZ-4154 Use ZXing to generate QR 2d barcode.
1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath.
2. Add services_qrcode.xml and QRCodeService.java in framework/common/.
3. Add qrcode request in common-controller.xml and QRCodeEvents.java under framework/common/.
4. Add qrcode.properties and QRCodeUiLabels.xml under framework/common/.
5. Add a barcode example page in specialpurpose/example, entry is on page: /example/control/EditExample?exampleId=EX01, the example can be seen on page: /example/control/ExampleReportPdfBarcode?exampleId=EX01

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1696921 13f79535-47bb-0310-9956-ffa450edef68
2015-08-21 10:03:11 +00:00
Deepak Dixit 43ed056525 OFBIZ-6530: Removed async=false from lookupDescriptionLoaded , getJSONuiLabels and getJSONuiLabel js method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687427 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 08:13:32 +00:00
Nicolas Malin 6aab83641f error in parsing array in ajaxUpdateAreas, use a regexp tp split all parameters separate by comma and support this string a,{b,c,d},e as three parameters and not five. Patch related to OFBIZ-6496. Thanks Pierre Gaudin for this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686593 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 12:13:13 +00:00
Jacques Le Roux 55f5564611 A better patch from Adrian for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

jleroux: This reverts the previous patch from Gil. It did not occur to me that all the rest of the result was only commented out HTML code, so a simple trim was enough. Happy to get rid of this ugly kludge



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680881 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 14:18:16 +00:00
Jacques Le Roux 4e2ddf8f0a A patch from Gil Portenseigne for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

This patch use a trick to no care about widgetVerbose comments. Sad to use this kind of trick, but if not, spaces might not be trimed. With that, the display is perfect. No side effect detected. 

jleroux: I still regret Hans past attitude about widgetVerbose which initially forced me to this hack 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680873 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 13:45:02 +00:00
Jacques Le Roux 8e8dc43528 Fixes in another way "Make background-color in setSourceColor function in fieldlookup.js theme dependent" https://issues.apache.org/jira/browse/OFBIZ-6371
I preferred the idea of using the jQuery UI effect function as explained in the Jira. It's then no longer color dependent since jQuery has #ffff99 as default color and this might be overridden easily in themes...
https://api.jqueryui.com/highlight-effect/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680201 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 08:30:47 +00:00
Jacques Le Roux d4818dfd66 A patch from Pierre Smits "util.js is missing licence header" https://issues.apache.org/jira/browse/OFBIZ-6384
jleroux: This is related to OFBIZ-5409. I noted then "The util.js script is introduced for that, though normally should not be needed... "



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679982 13f79535-47bb-0310-9956-ffa450edef68
2015-05-18 10:58:10 +00:00
Jacques Le Roux 64088836d6 A patch from Wei Zhang for "Return <strong> tag for Autocomplete Dropdown highlight" https://issues.apache.org/jira/browse/OFBIZ-6036
I got the highlight text like <strong>US</strong> for Autocomplete Dropdown. See http://demo-trunk-ofbiz.apache.org/example/control/FormWidgetExamples

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656445 13f79535-47bb-0310-9956-ffa450edef68
2015-02-02 12:00:23 +00:00
Jacques Le Roux 109c1911c6 No functional changes, only replaces tabs (introduced by r1352861 by 4 spaces in fieldlookup.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652738 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 11:33:12 +00:00
Jacques Le Roux 928b06c495 A patch from Gareth Carter for "framework/images/webapp/images/fieldlookup.js throws a javascript error in google chrome from a link to ofbiz from another site" https://issues.apache.org/jira/browse/OFBIZ-5968
When you link to your ofbiz installation from another site using _blank as the target and protocol is changing from http to https, google chrome will throw an error - 
Blocked a frame with origin "https://ofbiz.company.com" from accessing a frame with origin "http://other.company.com".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

This error may prevent other javascript from executing (this has caused, in our ofbiz installation, datetimepickers from working properly)

jleroux: this simply adds a try/catch block and use the parent in case of failure

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652731 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 11:12:11 +00:00
Jacques Le Roux c71805f4ce A patch from Amardeep Singh Jhajj for "Main storefront page, Featured Products (middle column) overwrites right column. Should just crop column, but not overwrite right column." https://issues.apache.org/jira/browse/OFBIZ-2602
Simply increases the width of the left and right screens. It is more appropriate UX and fixes the issue. Checked in Safari MAC OS (8.0) and latest Google Chrome, Firefox, it is working fine there.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652725 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 10:23:59 +00:00
Anil Patel 5d95b3522e [OFBIZ-5711] Nice catch. Thanks Rong Nguyen for reporting and Deepak Dixit for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626464 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 15:53:08 +00:00
Ashish Vijaywargiya 44bc632d5a Applied patch from jira issue - OFBIZ-1524 - Improve the way CreditCard.cardType field is managed.
Thanks Akash Jain for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626425 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 12:16:37 +00:00
Jacques Le Roux b243ccc478 A modified patch from Ankit Jain for "We should check that the thru date is not same or older than the from date" https://issues.apache.org/jira/browse/OFBIZ-3161
jleroux: 
I reused Ankit's patch as a basis for this commit
I added an i18n label
Added a way to use alert() in showErrorAlertLoadUiLabel for generalising when no contentarea is present
Replaced $ call by jQuery
Used the <<name*='fromDate'>> and <<name*='thruDate'>> filters to get all cases (228 thruDate cases)
Still used only an alert, so it's only a warning, nothing coercive

There are other date couples like (estimatedStartDate, estimatedCompletionDate) and (actualStartDate, actualCompletionDate) but their values should not be enforced.
If ever someone wants to not let them free, then she just has to add the couples in FromThruDateCheck.js





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598977 13f79535-47bb-0310-9956-ffa450edef68
2014-06-01 12:34:24 +00:00
Jacques Le Roux c1dd8efb6c Adds a link to the documentation in wiki
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564775 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 13:46:09 +00:00
Jacques Le Roux caa8d340cd Updates jQuery to 1.11.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563799 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 08:29:36 +00:00
Jacques Le Roux 747a4a3154 This is a major update of jQuery and related, it contains:
jquery-1.8.2 to jquery-1.10.2 which implies using jquery-migrate-1.2.1 for plugins compatiblities
    jquery-ui-timepicker-addon-1.0.5 to jquery-ui-timepicker-addon-1.4.3 (using min now, better i18n)
    jquery-ui-1.9.0 to jquery-ui-1.10.3
    removes jquery.ui.datepicker.js now integrated in jquery.ui
    jquery.hotkeys-0.7.9 to jquery.hotkeys-0.8
    jquery.maskedinput-1.2.2 to jquery.maskedinput-1.3.1
    jquery.validate 1.10.0 to 1.11.1 
        I never realised how much efforts have been put in this plugin!  
        I fixed an issue in JsLanguageFilesMapping generation
        I removed the messages_ptbr.js and messages_ptpt.js files and the related conundrum in JsLanguageFileMappingCreator.java
        untested, found not use cases OOTB
    jquery.jcarousel ?(2006) to 0.3.0 (2013)
        untested, found not use cases OOTB
    jquery.flot 0.7 to 0.8.2 (lot of changes, still works)
        removes useless flotpie.ftl 
        removes empty flotr folder
    jquery.mobile-1.1.0-rc.1 to jquery.mobile-1.4.0
        untested, found not use cases OOTB
    jquery.cookie to jquery.cookie-1.4.0    


Removes all useless/redundant js files (not only jQuery unused old versions)
    notably removes all under images/jquery/ui/development-bundle/ui
    removes now useless GooglemapMarkers.js and GooglemapSimple.js

Flat Grey application.js
    moves jQuery(document).ready(function() at bottom (spotted in Chrome console) 
    
css
    I did not find much issues, I spotted the title bar of the lookups, but got it fixed after some efforts.    

Issues:
    Imagemanagement:  I got issues while testing, actually I'm not quite qure how it works, even in stable demo. It should be validated again. I commit nevertheless my changes:
        moves js part from product to images component
        removes useless calls to js files (mostly in imagemanagement, but not only)
        renames jquery.min.js to sizzle.min.js. 
        Inside sizzle.min.js, updates the Dojo part to v1.10.17-pre and removes the jQuery part
        changes to use ofbizContentUrl macro for generating js calls
        jquery.rotate.js NOT! It's jQueryRotateCompressed.js http://markmail.org/message/dit3dlh3ph4jnenp
        Got ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'D:\projectsASF\ofbizClean\framework\images\webapp\images\pro&' to length 100.  I opened OFBIZ-5501 for that
    I tried to update jstree  to jstree 3 but gave up. I let the jquery.jstree-3.0.0-beta3 files in place in case someone would give it a chance...
    
Not related but while a it:
    removes <!--flot example requests--> from birt controller (moved recently to example component)
    
    

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559769 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 16:27:09 +00:00
Jacques Le Roux 3334d1b3ca A patch from Leon for "Form pagination fails if total length of search condition is more than about 2~3k bytes" https://issues.apache.org/jira/browse/OFBIZ-5478
Since it uses "GET" method to submit the pagination request, it's restricted by the URL max length limitation.
The patch attached changes the submit way from GET to "POST" if total length of URL > 2k.


jleroux: I also sort of (found after it was due to it) reverted r1204170, I don't see the reason for this now, and it was uselessly duplicating the current entry in the page size dropdown


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559338 13f79535-47bb-0310-9956-ffa450edef68
2014-01-18 10:19:44 +00:00
Jacques Le Roux 9d2e62ecf6 A modified patch from Gareth Carter for "JSON Response does not set http status on error" https://issues.apache.org/jira/browse/OFBIZ-5409
This is rather a defensive patch which secure json response on services calls. 
It might need some changes in custom code if (not recommended) an Ajax GET response is used... The util.js scrpt is introduced for that, though normally should not be needed... 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557462 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 20:26:30 +00:00
Jacques Le Roux 0eb2088f5c Unfortunately adding a line is not enough for Aptana js editor to separate comments, so better to put comments in the function itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1555516 13f79535-47bb-0310-9956-ffa450edef68
2014-01-05 14:31:46 +00:00
Jacques Le Roux ab73f5348e Damn, this was unintended
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1555507 13f79535-47bb-0310-9956-ffa450edef68
2014-01-05 13:55:45 +00:00
Jacques Le Roux 94e4a25400 Adds a line between the license header and the getDependentDropdownValues() function documentation. My JS editor in Eclipse (Aptana) was hiding it all together with the license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1555506 13f79535-47bb-0310-9956-ffa450edef68
2014-01-05 13:54:39 +00:00
Jacques Le Roux c28edba6d8 This fixes the geolocation in OFBiz, for both Google Maps and OpenLayers. It seems few changes, it took me more time than I thought. I hope this will last few years again, and it should be easier to maintain now.
What I did:
Upgraded from Google Maps API 2 to 3, which also means removing the keys in general.properties. They are no longer needed in API-3 (at least for our demo and local test uses), one worry less!
Refactored Google Maps code in geolocation.ftl: put more things in common,  simplified code (the API-3 is better from this POV).

For OpenLayers, due to most browsers now rejecting mixed content (HTTP vs HTTPS), I had to follow their advice and put OpenLayers-2.13.1.js + images and theme(finally not used) in the framework. Not a big deal in term of size but again one more lib to worry about. Anyway geolocation is not vital for OFBiz. I have also added a zoom and navigation widget in maps. Note that IE warns about mixed content, but you can bypass it.

While working on editGeoLocation (in Party) I noticed it does not update the elevation. I found it was possible http://www.daftlogic.com/sandbox-google-maps-find-altitude.htm but I did not implement it, lack of time...
Also I got once a NPE in CallSimpleMapProcessor (when using editGeoLocation) but was unable to reproduce (w/o changes before and after)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554536 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:22:21 +00:00
Jacques Le Roux c8ce55ecc9 A patch from Anahita Goljahani for Fixed mispelling of "occurred" https://issues.apache.org/jira/browse/OFBIZ-5342
jleroux: this includes a safe change in jquery.validate.js and jquery.validate.min.js

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530341 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 16:35:40 +00:00
Jacques Le Roux 9007023c7f A patch from Leon for "trivial errors corrections to fieldlookup.js" https://issues.apache.org/jira/browse/OFBIZ-5330
Correct following trivial issues:
1. in lookupDescriptionLoaded.prototype.update, not assign the form when try to get filed object by its name
2. in setSourceColor, variable "target" should be given parameter "src"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526456 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 12:15:52 +00:00