|
Author: sascharodekamp
Date: Wed Feb 16 18:06:40 2011 New Revision: 1071338 URL: http://svn.apache.org/viewvc?rev=1071338&view=rev Log: Bug Fix - "In IE under, myportal module, registration, when only refreshes the verification code" (https://issues.apache.org/jira/browse/OFBIZ-3962) - We forgot to migrate the code form dojo to jQuery, after that the bug is solved - Thanks Wang Suozhu for reporting. Modified: ofbiz/trunk/specialpurpose/myportal/widget/RegisterPerson.ftl Modified: ofbiz/trunk/specialpurpose/myportal/widget/RegisterPerson.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/RegisterPerson.ftl?rev=1071338&r1=1071337&r2=1071338&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/myportal/widget/RegisterPerson.ftl (original) +++ ofbiz/trunk/specialpurpose/myportal/widget/RegisterPerson.ftl Wed Feb 16 18:06:40 2011 @@ -102,48 +102,38 @@ under the License. </td> </tr> <script type="text/javascript" language="JavaScript"> - <!-- - dojo.require("dojo.widget.*"); - dojo.require("dojo.event.*"); - dojo.require("dojo.io.*"); - function reloadCaptcha(){ var submitToUri = "<@ofbizUrl>reloadCaptchaImage</@ofbizUrl>"; - dojo.io.bind({url: submitToUri, - load: function(type, data, evt){ - if(type == "load"){ - document.getElementById("captchaImage").innerHTML = data; - reloadCaptchaCode(); - } - },mimetype: "text/html"}); + $.post(submitToUri, null, + function(data){ + document.getElementById("captchaImage").innerHTML = data; + }); + reloadCaptchaCode(); + } + function reloadCaptchaCode(){ + var submitToUri = "<@ofbizUrl>reloadCaptchaCode</@ofbizUrl>"; + $.post(submitToUri, null, + function(data){ + document.getElementById("captchaCode").innerHTML = data; + }); } function submitNewCustForm(){ var nform = document.newuserform; nform.captcha.value = document.captchaform.captcha.value; nform.submit(); } - function reloadCaptchaCode(){ - var submitToUri = "<@ofbizUrl>reloadCaptchaCode</@ofbizUrl>"; - dojo.io.bind({url: submitToUri, - load: function(type, data, evt){ - if(type == "load"){ - document.getElementById("captchaCode").innerHTML = data; - } - },mimetype: "text/html"}); - } - //--> </script> <tr> <td class="label"> </td> <td> - <a href="javascript:reloadCaptcha();">reload image</a> + <a href="javascript:reloadCaptcha();">reload image</a> </td> </tr> <tr> <td class="label"> Verify captcha code </td> <td> <input type="text" autocomplete="off" id="RegisterPerson_captcha" maxlength="30" size="23" class="required false" name="captcha"/> - <span class="tooltip">Required</span> + <span class="tooltip">Required</span> </td> </tr> <tr> |
| Free forum by Nabble | Edit this page |
