From 10f982409911cd158d79c7a2917b72e724266fe5 Mon Sep 17 00:00:00 2001 From: jelhan Date: Thu, 31 Oct 2013 23:51:16 +0100 Subject: [PATCH] rename --- js/croodle.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/croodle.js b/js/croodle.js index a66b6cd..d4b09bb 100644 --- a/js/croodle.js +++ b/js/croodle.js @@ -115,7 +115,7 @@ Poll = function (id) { }; function AddUser() {; - new_user = AddUserGetDataByForm(); + new_user = AddUserGetData(); self.data.user.push(new_user); self.Save(); @@ -125,7 +125,7 @@ Poll = function (id) { return false; // prevent form to be submitted }; - function AddUserGetDataByForm() { + function AddUserGetData() { new_user = {}; new_user.name = $('#addUserName').val(); new_user.selection = []; @@ -263,7 +263,7 @@ PollAdd = function (type) { } function CreatePoll() { - new_poll = CreatePollGetDataByForm(); + new_poll = CreatePollGetData(); // check for atleast two options if (new_poll.data.options.length < 2) { @@ -278,7 +278,7 @@ PollAdd = function (type) { return false; // prevent form to be submitted } - function CreatePollGetDataByForm() { + function CreatePollGetData() { new_poll = {}; new_poll.head = {}; new_poll.data = {};