From a23ae07585a9b7347c60275b9805b979e0bf2418 Mon Sep 17 00:00:00 2001 From: Nael Date: Thu, 27 Jun 2013 23:37:38 +0200 Subject: [PATCH] ... --- uVote/page/default_page/js/loadtexts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uVote/page/default_page/js/loadtexts.js b/uVote/page/default_page/js/loadtexts.js index c72272a..a22f566 100644 --- a/uVote/page/default_page/js/loadtexts.js +++ b/uVote/page/default_page/js/loadtexts.js @@ -15,12 +15,12 @@ $(document).ready(function() { $('.btnvote_off').click(function () { vote_click($(this).attr('poll_ID'),3); }); - $('.getuserpersonaldata').click(function () { - vote_click($(this).attr('inputEmail', 'inputPassword', 'inputPassword2'), array()); + $('.inputEmail, inputPassword, inputPassword2').click(function () { + vote_click($(this).attr('email', 'password', 'password2'), inputEmail, inputPassword, inputPassword2); }); }); function getuserpersonaldata(inputEmail, inputPassword){ - $.get('.api.php?call=account&action=create&username=' + NULL + '&password_sha=' + inputPassword + '&email=' + inputEmail + '&locale=deDE', function (data) { + $.get('.api.php?call=account&action=create&username=' + NULL + '&password_sha=' + password + '&email=' + email + '&locale=deDE', function (data) { dataTmp = data; }).complete(function() {