Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

+23 -5
View File
@@ -11,6 +11,7 @@ var _register = window.IPBoard;
_register.prototype.register = {
inSection: '',
memberPartial: 0,
allowed_chars: [ ],
@@ -23,9 +24,26 @@ _register.prototype.register = {
{
ipb.register.initFormEvents();
}
if( ipb.register.inSection == 'completeReg' )
{
ipb.register.initCompleteRegFormEvents();
}
});
},
initCompleteRegFormEvents: function()
{
if( $('display_name') ){
$('display_name').observe('blur', ipb.register.checkLoginName);
}
if( $('email_1') && $('email_2') )
{
$('email_1').observe('blur', ipb.register.checkEmailValid);
$('email_2').observe('blur', ipb.register.checkEmailMatch);
}
},
initFormEvents: function()
{
if( $('login_name') ){
@@ -162,7 +180,7 @@ _register.prototype.register = {
// Check for availability
name = name.replace("+", "+");
new Ajax.Request( ipb.vars['base_url'] + "app=core&module=ajax&section=register&do=" + ajax,
new Ajax.Request( ipb.vars['base_url'] + "app=core&module=ajax&section=register&do=" + ajax + '&mpid=' + ipb.register.memberPartial,
{
method: 'post',
parameters: {
@@ -235,7 +253,7 @@ _register.prototype.register = {
}
$(elem).removeClassName( 'error' ).removeClassName('accept');
}
}
ipb.register.init();
}
};
ipb.register.init();