? jsform.kpf
? jsform.patch
? poll_more_label.patch
? preprocess.patch
? sites/jsform
Index: modules/poll/poll.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/poll/poll.module,v
retrieving revision 1.245
diff -u -p -r1.245 poll.module
--- modules/poll/poll.module	17 Oct 2007 19:36:12 -0000	1.245
+++ modules/poll/poll.module	19 Oct 2007 18:54:17 -0000
@@ -238,10 +238,6 @@ function poll_form(&$node, $form_state)
     ),
   );

-  // If we're using the javascript version (99% use-case), change the button
-  // title to 'Add another choice' to reflect the javascript behavior.
-  drupal_add_js("if (Drupal.jsEnabled) { $(document).ready(function() { $('#edit-poll-more').val('". t('Add another choice') ."'); }); }", 'inline');
-
   // Poll attributes
   $_duration = array(0 => t('Unlimited')) + drupal_map_assoc(array(86400, 172800, 345600, 604800, 1209600, 2419200, 4838400, 9676800, 31536000), "format_interval");
   $_active = array(0 => t('Closed'), 1 => t('Active'));
@@ -633,6 +629,9 @@ function poll_view_results(&$node, $teas
  * Theme the admin poll form for choices.
  */
 function theme_poll_choices($form) {
+  // Change the button title to reflect the behavior when using JavaScript.
+  drupal_add_js('if (Drupal.jsEnabled) { $(document).ready(function() { $("#edit-poll-more").val("'. t('Add another choice') .'"); }); }', 'inline');
+
   $rows = array();
   $headers = array(
     t('Choice'),
