Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- we'll call this new
- var btnLogin = $('<input/>', {
- 'id': 'confirm-btn', 'name': 'login', 'type': 'submit', 'value': _('login_form_button_login'), 'onclick': 'javascript:return false;'
- }).addClass('btn').appendTo($('<div/>', {'id': 'line-btn', 'class': 'line btnLine'}).appendTo(formLogin));
- if (SETTINGS.fb_platformlogin) {
- var fbPlatformLogin = $('<button/>', {'id': 'fb-platform-login-btn', 'name': 'fb-platform-login', 'type': 'submit',
- 'text': ('fb_platform_login'), 'onclick': 'javascript:return false;'
- }).addClass('btn fb').appendTo($('<div/>', {'id': 'fb-platform-login-btn-line', 'class': 'line btnLine'}).appendTo(formLogin));
- fbPlatformLogin.click(initLoginFacebookPlatform);
- }
- -------------------------------------------------------------
- we'll call this old
- jQuery(document).ready(function() {
- $('.page-container form').submit(function(){
- var username = $(this).find('.username').val();
- var password = $(this).find('.password').val();
- if(username == '') {
- $(this).find('.error').fadeOut('fast', function(){
- $(this).css('top', '27px');
- });
- $(this).find('.error').fadeIn('fast', function(){
- $(this).parent().find('.username').focus();
- });
- return false;
- }
- if(password == '') {
- $(this).find('.error').fadeOut('fast', function(){
- $(this).css('top', '96px');
- });
- $(this).find('.error').fadeIn('fast', function(){
- $(this).parent().find('.password').focus();
- });
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement