Commit Graph
368 Commits
Author SHA1 Message Date
Jacques Le Roux 65f92a9a1f Still missed something, it's clean now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055109 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 17:21:51 +00:00
Jacques Le Roux ee2c6eef8a While I cleaned the description field at r1051602 I broke some description cases. It's fixed now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055104 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 17:10:19 +00:00
Jacques Le Roux 813ba327ca Let's keep it simple: we don't need jQuery.extend() here. A simple prototype is enough.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054220 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 10:39:18 +00:00
Jacques Le Roux bf280afa6e English initialisation for the jQuery UI date picker plugin. Only added by in OFBiz to get rid of "Failed to load resource: the server responded with a status of 404 (Not Found)" in Chrome js console. It's redundant with "Default regional settings" in function Datepicker() {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053739 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 21:18:55 +00:00
Andrew Zeneski caa348bbe9 addressed issues with calling lookup forms with parameters (mainly when using layered lookups); instead of appending ?presentation now it will use the same logic used in other places to see if parameters exist
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053680 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 17:41:03 +00:00
Andrew Zeneski 602f732c42 updated autocomplete functions to fire events (same as selecting from a lookup list) when items are selected from the autocomplete (either by pressing enter or with a mouse click)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053678 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 17:15:45 +00:00
Andrew Zeneski 4f549f2988 changed placement of firing the changed event to the write_value function; since all setters call this function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053677 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 17:15:01 +00:00
Andrew Zeneski 5940cd1938 fixed issue with getDependentDropdownValues; when the returned list contains only a single item (in Safari) the indexOf method is undefined; changed code to use jQuery.inArray instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053649 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 15:18:21 +00:00
Jacques Le Roux 93b41394b9 Use the power of Aptana to format correctly this file. I have adapted the default format setting to be more near our best practices. If you are interested I can share the formatting template.
Anyway I think I will discuss that on dev ML latter. We could have it posted in the wiki, when agreed upon its content, and use it as part of our best practices...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053198 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 21:36:33 +00:00
Andrew Zeneski 5d4c8f8567 checkUomConversion expects getServiceResult to return a value (synchronous); refactored the getServiceResult method to actually run synchronous instead of asynchronous
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053102 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 16:23:11 +00:00
Hans Bakker ea2222d73d make the ecommerce 'contactus' not require login, add captcha and will try to match entered email address to party, whennot create the party.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052449 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 05:45:19 +00:00
Hans Bakker a31572006b several improvements and completion of the email contactlist subscribe and unsubscribe functions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052447 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 04:37:20 +00:00
Jacques Le Roux f6cf21be04 Complete r1051462 (We don't need this whole block if there are no descriptions. It looks better in UI: no scrawls around the lookup button, notably when the description is empty) in case of the old style lookup (where a false description <script type="text/javascript">\r\n</script> is passed in because of an empty result in fieldlookup.js for <<if (result.split("ajaxAutocompleteOptions.ftl -->")[1]) {>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1051602 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 18:33:44 +00:00
Jacques Le Roux 35cfde7df7 We don't need this whole block if there are no descriptions. It looks better in UI: no scrawls around the lookup button, notably when the description is empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1051462 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 11:33:50 +00:00
Jacques Le Roux 2cfecd4b40 A patch from Sascha Rodekamp "Update jsTree to RC3" (https://issues.apache.org/jira/browse/OFBIZ-4058) - OFBIZ-4058
Few changes in jsTree, some adds the checkbox tree mode and Drag'n'Drop behaviour. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1049154 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:42:05 +00:00
Jacques Le Roux 4736420673 A patch from Sascha Rodekamp "Update the Datepicker to version 0.9.1" (https://issues.apache.org/jira/browse/OFBIZ-4056) - OFBIZ-4056
Updates the timepicker. Seems that it's more stable and they fixed a few issues. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1049151 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:39:30 +00:00
Jacques Le Roux 97ac568b9a A patch from Dukian (actually done by hand was easier, got an UTF8 issue)
There are many different i18n file naming approaches for language.country couple. For Traditional Chinese ... OFBiz uses java way: zh_TW, datepicker uses zh-TW, and el-rte needs this patch. It uses actually zh_tw, see the full version line 1108:

Dukian will file this issue to el-rte project too.

At r1044611 I 1st committed in jQyery branch, an habit to loose..

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044615 13f79535-47bb-0310-9956-ffa450edef68
2010-12-11 09:46:07 +00:00
Jacques Le Roux 24fe5ff37e Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Jacques Le Roux 8cf126e7f5 A patch from Anne Jessel "Collapse all broken if hyperlink in pane" (https://issues.apache.org/jira/browse/OFBIZ-4022) - OFBIZ-4022
To reproduce the bug:
    * edit the EditProduct form in applications/product/widget/catalog/ProductForms.xml
    * add a new field with a hyperlink sub-element.
    * refer to this new field in the first, non-collapsible field-group in the sort-order
    * go to this page in the UI (edit a product in the catalog)
    * the Expand All and Collapse All buttons do not work properly

The problem is caused by the javascript finding the added hyperlink field in the first field-group, and incorrectly assuming it is
the expand/collapse link for the field-group. This causes the javascript to crash when it gets a null reference to an enclosing li element.

It is not specific to the EditProduct form, but applies to any group of collapsible panes where one contains a hyperlink.

The attached patch simply checks that the li element actually exists.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042348 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 13:37:07 +00:00
Bruno Busco e20f900808 Changed several ecommerce ftl files rendering screenlets so that the HTML is the same as the one that is rendered by the screenlet widget.
Added screenlet styles to the ecommain.css
Added several missin screenlet-body tags.
This allows better and more omogeneus rendering when mixing together FTL and screenlet widgets.
To be continued...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042133 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:34:47 +00:00
Hans Bakker 6cab58f905 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Andrew Zeneski efc325973f small change to call the onchange event when updating the autocomplete fields after the description is set
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1031655 13f79535-47bb-0310-9956-ffa450edef68
2010-11-05 16:13:00 +00:00
Erwan de Ferrieres 9b012a1cb9 Replacing the quickadd table with a CSS layout. Works nicely in ecommerce, a bit less in order application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1031068 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 16:37:04 +00:00
Hans Bakker f5800d1731 html wysiwyg editor now showing '?' and slightly improved ecommerce login screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1029589 13f79535-47bb-0310-9956-ffa450edef68
2010-11-01 09:58:50 +00:00
Jacques Le Roux 7a9a644f08 New Price Rules screen.
I tried to make it look better by having only one Value column but I found that a field inserted by Prototype was not taken into account when submitted. As it's not possible to rename a DOM element I finally gave up and used use-when + hide/show instead. I will see if we can do better with jQuery...
I kept the old Screen + Groovy + FTL files, not for nostalgics, but in case someone has to quickly deal with fields with a lot of values (to avoid drop-down saturation). Then the Id will still be used. Note that it's also possible to do so with the new screen: you need only to put the field type in setPriceRulesCondEventJs.ftl and at top of getAssociatedPriceRulesConds service implementation in order to handle it as an Id with an input field (like it's done OOTB for Quantity and List Price)

I'd like to use the same mechanism for Promo Rules. I will do that later, hopefully before merging jQuery...

BTW, I like the now clear separation with Ajax onComplete event.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1005861 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 15:33:03 +00:00
Jacques Le Roux be27d50635 Clarifies, improves and generalize getDependentDropdownValues.js.
* Now it's possible to also hide the drop-down field title
* Clarify the inputField usage (now a boolean)
* Allows to use allow-empty="true" on main field (of course dependent field as well if needed). For that onComplete is used and generalizes
* longer Fade duration (from 1.5 to 2.5) to let enough time to read...

An example of hide+hideField use with setCountryStatesEventJs.ftl.
I should "soon" commit the new Price Rules screen which uses the inputField parameter for the Quantity condition

Any functional changes as setCountryStatesEventJs.ftl and the getDependentDropdownValues optional parameters are not used OOTB


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1005395 13f79535-47bb-0310-9956-ffa450edef68
2010-10-07 10:16:46 +00:00
Jacques Le Roux bfccb22656 Introduces a new checkUomConversion service which returns a boolean if UomConversion exists.
It may be used by a checkUomConversion javascript which uses the getServiceResult. I put it in the getDependentDropdownValues.js file for the moment. But anyway at term I will refactor all these Ajax related scripts (like in selectall.js) in a specific file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002353 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 20:58:21 +00:00
Jacques Le Roux fdea7b2527 Change how Webtools/Geo Management is done:
* Now the link from the Find list goes to the Link Geo screen. It opens (focus on Geo field) with selected multiples (in function of assoc type) for the geo selected in Find list, and changes accordingly. In jQuery branch it will use asmselect for that 
* So the Create screen is now a Create/Edit screen with a lookup for Geo choice

This continues to allow geos Edition/Creation and to links them, but now shows also the links between geos in the Link screen. Due to native limitations of select multiples, it's not very useful in trunk but interesting in jQuery branch (I did not try to find an equivalent to asmselect in the Prototype worls, still doable...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000586 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 19:06:22 +00:00
Jacques Le Roux 55669077c7 Not sure why I have a problem with InputField, I tried another name (inputName) but it's the same. Using arguments[9] is ok though.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998321 13f79535-47bb-0310-9956-ffa450edef68
2010-09-17 21:01:18 +00:00
Jacques Le Roux bf4fba2def This introduces changes that will be used soon (after some client tests) to refactor the Price Rules UI. They introduces any functional changes yet, all new things are optional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998305 13f79535-47bb-0310-9956-ffa450edef68
2010-09-17 20:33:40 +00:00
Adam Heath d3ddc034ea I misunderstood how prototype works, I thought it modified global
classes with it's new features, so I thought that getDimension would
always be available.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997469 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 19:26:31 +00:00
Adam Heath d2dd5753f4 Remove errantly commited debug, that always showed the spinner when the
document was loaded.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997468 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 19:26:26 +00:00
Adam Heath 8bd26d1863 Display the ajax spinner absolutely in the center of the document,
instead of allocating static space in the control area.  This takes the
width of the control area back to something sensible.  With always
allocated space in the control area, there ends up being a blank
space(because of the use of visibility:hidden instead of display:none).
When the Person.name and Company.Name fields are then long, this control
area breaks the flow, and word-wraps in IE, or flows underneath the
breadcrumbs in firefox.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997421 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:48 +00:00
David E. Jones e5f21b084b Commented out changes from Jacques in 993508, these assumed that the autocompleter field was a name which breaks all fields that are meant to be IDs; if that change is improved so use the description-field-name attribute this should not happen, but for now leaving this out
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995846 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 16:14:29 +00:00
Adam Heath 923bf9d8ff Fix several overly wide screens in specialpurpose/ecommerce:
1: product detail hard-coded the width of the image, even if the actual
image was smaller.
2: products with surveys(gift card purchase) were overly large, which
caused them to float below the left content.
3: the header on productcategory listings had background lines that
overflowed underneath the left and right columns.

The ecommerce app is now closer to something we'd actually show a real
customer, in its default configuration.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995198 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:02:58 +00:00
Jacques Le Roux dec4ab2572 Introduces a very simple mean to set a dependent Id field when using a Name field as a lookup (the fields must have the same prefix, eg: partyName, partyId).
It uses the description (Id) shown with the Name. Hence the Lookup screen must be set in order to show a description in the autocomplete part. 
It seems this is not always easy notably when you need to show at least 2 parts for the Name (eg Person). 
At least it easy to set and it works well for simples case for now (eg PartyGroup)

I did not find another way since Ajax.Autocompleter can't update another field. 
The alternative would be navigation to the next hidden field, at least it would avoid the mandatory Id/Name pair. 
But it's more difficult to demonstrate in Example component


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993508 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 19:55:49 +00:00
Jacques Le Roux 5fdb5272c5 Forgot to put the license headers into new files in r986370
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986407 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 17:40:28 +00:00
Jacques Le Roux 7a285eed10 Miscellaneous improvement in Form Widgets examples. Notably introduces an, as much as possible generalized (so far), dependent drop-downs example. I have introduced 2 couples of dependent drop-downs.
The 1st one, country/states, is a common one and does not need (ie it's better to not) to be generalized. It can be used as is. It needs some pieces which are all included, see comments and follow... 

The 2d, category/products, have been taken as example but is not a good candidate. What if you get much categ or/and products? Anyway it's a good OOTB example and I had it at hand, so I used it. I have tried to generalize (abstract the couple of dropdowns) and it's almost there. The only issue I crossed, is when you want to use a couple of dependent drop-downs in the same form. As it's not a common case, the setDependentDropdownValuesJs.ftl template-script can be used in most cases...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986370 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 16:18:24 +00:00
Jacques Le Roux 4ced84dd08 A patch from Karl Pitrich "When editing Portal Pages, Drag & Drop for Portlets does not work" (https://issues.apache.org/jira/browse/OFBIZ-3889) - OFBIZ-3889
When editing Portlet Pages, either in MyPortal or PortalAdm, Drag & Drop of Portlets does not work.
Where are several Issues in the MyPortal, some have fixes, none is commited to trunk.

Problems:

    * in myportal.js, function getDestinationInformationPortlets(): DOM ID's are not handled correctly
    * in framework/webtools/widget/PortalAdmScreens.xml: required javascript + css files are not included


JLR: 
While working on this I have found other issues: the login.ftl files used in hhfacility and myportal were not tenant enabled. They are different  but by chance in myportal very close to common so I was finally able  to do both at along with  Karl's changes. Actually I wanted to do 2 commits but forget to uncheck the files while doing a second attempt to commit.

MyPortal
 * The login process in MyPortal was not tenant enabled, it's done in this commit.
 * I kept its specificity : newRegisterLogin and wonder why it has not been extended to common?

hhfacility
The login process in hhfacility was not tenant enabled, it's done in this commit. Doing so, I saw there i18n is not done, not an issue for me...







git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985163 13f79535-47bb-0310-9956-ffa450edef68
2010-08-13 11:43:38 +00:00
Jacques Le Roux 04d803790b A patch from Rene Scheibe "Click Expand or Colaspe All does not work as expected" (https://issues.apache.org/jira/browse/OFBIZ-3744) - OFBIZ-3744
Reported by Sam Hamilton:
If you are on say this page - https://localhost:8443/catalog/control/EditProduct?productId=WG-9943
clicking on Expand All it will expand all the ones not expanded and then collapse the ones that were already open
clicking on Collapse All it will collapse all the ones open and open all the ones that were collapsed.

fixed issue

    * css.style.visible cannot be true/false as used so in collapseAll()
    * now using the $() container and calling visible() which returns true/false


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981051 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 13:07:13 +00:00
David E. Jones 800a85a38e Fixed two bugs with autocomplete functionality: init script in selectall.js was not doing the search/replace properly for ampersands, in the FindAutocompleteOptions.groovy script the andExprs were not really anded together so split into the or and main and lists and assembled the conditions properly, which will fix the conditionFields and the andCondition fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980348 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 07:53:06 +00:00
Erwan de Ferrieres 3b3a0c404b using ajaxSubmitFormUpdateAreas, if the return error message was not in a list format, an error was displayed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980038 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 12:45:04 +00:00
Erwan de Ferrieres 903b726770 As spotted by Matthieu Bollot on dev mailing-list, Su and Sa days were inverted
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@963271 13f79535-47bb-0310-9956-ffa450edef68
2010-07-12 12:52:28 +00:00
Erwan de Ferrieres c0f074773b Wrong parameters size was used for args with presentation=layer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@961324 13f79535-47bb-0310-9956-ffa450edef68
2010-07-07 09:55:28 +00:00
Jacques Le Roux bc89697809 Found a Jacopo's message while browsing around calendarDateSelect.
I have not put pl.js and fi.js because they exist in the calendarDateSelect project.
I'd like to contribute those news to the calendarDateSelect project, but it's not a priority for me
I have asked how to contribute to the calendarDateSelect project

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@960376 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 18:22:50 +00:00
Jacques Le Roux 92fe067268 Should fix a problem reported by Scott on dev ML.
It's related to r886723: I forgot to create an en.js file (used as default).
I have also enhanced the other files but without total guarantee of correctness, at least it's better and improvable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@960336 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 12:59:05 +00:00
Erwan de Ferrieres 417be33da1 When an error message is displayed, clicking on it will make it disappear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959960 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 12:10:58 +00:00
David E. Jones 8a6d9c7515 Small change to make the date/time format more consistent with added padding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956123 13f79535-47bb-0310-9956-ffa450edef68
2010-06-18 20:36:23 +00:00
Jacques Le Roux 00de634751 Generalize to set_values and _multivalues. BTW I found some issues related to OFBIZ-3746, I will reopen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@952270 13f79535-47bb-0310-9956-ffa450edef68
2010-06-07 15:28:33 +00:00