mirror of
https://github.com/Mibew/java.git
synced 2025-04-07 13:20:13 +03:00
25 lines
668 B
JavaScript
25 lines
668 B
JavaScript
/**
|
|
* @preserve This file is part of Mibew Messenger project.
|
|
* http://mibew.org
|
|
*
|
|
* Copyright (c) 2005-2011 Mibew Messenger Community
|
|
* License: http://mibew.org/license.php
|
|
*/
|
|
|
|
var SurveyForm = Class.create();
|
|
Class.inherit(SurveyForm, ClientForm, {
|
|
checkFields: function() {
|
|
if(this.form.email == null || this.form.email.getAttribute('type') == 'hidden') {
|
|
return null;
|
|
}
|
|
if(! this.emailIsValid(this.form.email)){
|
|
return this.localizedStrings.wrongEmail || '';
|
|
}
|
|
return null;
|
|
}
|
|
});
|
|
|
|
EventHelper.register(window, 'onload', function(){
|
|
Survey = new SurveyForm(document.surveyForm);
|
|
Survey.localize(localizedStrings);
|
|
}); |