summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-19 00:09:11 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-19 00:09:11 +0000
commitfa39282ef779a331ba2e3096f791c5a663994e16 (patch)
treecbbff5ddd220781bd7398e0531750a2e7404ee95 /modules/poll
parent7205ff14cac0472acb9247297d13477ab9cc5a97 (diff)
downloadbrdo-fa39282ef779a331ba2e3096f791c5a663994e16.tar.gz
brdo-fa39282ef779a331ba2e3096f791c5a663994e16.tar.bz2
- Patch #1056108 by 1V: consistent use of 'JavaScript' and 'Ajax'.
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.module6
-rw-r--r--modules/poll/poll.test2
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 60d364523..65fd5abd1 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -242,7 +242,7 @@ function poll_form($node, &$form_state) {
$type = node_type_get_type($node);
// The submit handlers to add more poll choices require that this form is
- // cached, regardless of whether AJAX is used.
+ // cached, regardless of whether Ajax is used.
$form_state['cache'] = TRUE;
$form['title'] = array(
@@ -296,7 +296,7 @@ function poll_form($node, &$form_state) {
}
// We name our button 'poll_more' to avoid conflicts with other modules using
- // AJAX-enabled buttons with the id 'more'.
+ // Ajax-enabled buttons with the id 'more'.
$form['choice_wrapper']['poll_more'] = array(
'#type' => 'submit',
'#value' => t('More choices'),
@@ -362,7 +362,7 @@ function poll_form($node, &$form_state) {
* return just the changed part of the form.
*/
function poll_more_choices_submit($form, &$form_state) {
- // If this is a AJAX POST, add 1, otherwise add 5 more choices to the form.
+ // If this is a Ajax POST, add 1, otherwise add 5 more choices to the form.
if ($form_state['values']['poll_more']) {
$n = $_GET['q'] == 'system/ajax' ? 1 : 5;
$form_state['choice_count'] = count($form_state['values']['choice']) + $n;
diff --git a/modules/poll/poll.test b/modules/poll/poll.test
index c22cc3570..218dcac5e 100644
--- a/modules/poll/poll.test
+++ b/modules/poll/poll.test
@@ -426,7 +426,7 @@ class PollJSAddChoice extends DrupalWebTestCase {
'choice[new:1][chtext]' => $this->randomName(),
);
- // Press 'add choice' button through AJAX, and place the expected HTML result
+ // Press 'add choice' button through Ajax, and place the expected HTML result
// as the tested content.
$commands = $this->drupalPostAJAX(NULL, $edit, array('op' => t('More choices')));
$this->content = $commands[1]['data'];