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.
Orig. Msg.: In IE under, myportal module, registration, when only refreshes the verification code git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1071338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user