Index: modules/image/image.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/image/image.admin.inc,v
retrieving revision 1.25
diff -u -p -r1.25 image.admin.inc
--- modules/image/image.admin.inc	4 Oct 2010 18:00:45 -0000	1.25
+++ modules/image/image.admin.inc	15 Oct 2010 19:12:12 -0000
@@ -694,10 +694,10 @@ function theme_image_style_effects($vari
   $rows = array();

   foreach (element_children($form) as $key) {
+    $row = array();
+    $form[$key]['weight']['#attributes']['class'] = array('image-effect-order-weight');
     if (is_numeric($key)) {
-      $form[$key]['weight']['#attributes']['class'] = array('image-effect-order-weight');
       $summary = drupal_render($form[$key]['summary']);
-      $row = array();
       $row[] = drupal_render($form[$key]['label']) . (empty($summary) ? '' : ' ' . $summary);
       $row[] = drupal_render($form[$key]['weight']);
       $row[] = drupal_render($form[$key]['configure']);
@@ -705,8 +705,6 @@ function theme_image_style_effects($vari
     }
     else {
       // Add the row for adding a new image effect.
-      $form['new']['weight']['#attributes']['class'] = array('image-effect-order-weight');
-      $row = array();
       $row[] = '<div class="image-style-new">' . drupal_render($form['new']['new']) . drupal_render($form['new']['add']) . '</div>';
       $row[] = drupal_render($form['new']['weight']);
       $row[] = array('data' => '', 'colspan' => 2);
@@ -715,7 +713,7 @@ function theme_image_style_effects($vari
     if (!isset($form[$key]['#access']) || $form[$key]['#access']) {
       $rows[] = array(
         'data' => $row,
-        'class' => !empty($form[$key]['weight']['#access']) ? array('draggable') : array(),
+        'class' => !empty($form[$key]['weight']['#access']) || $key == 'new' ? array('draggable') : array(),
       );
     }
   }
