Index: modules/update/update.manager.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.manager.inc,v
retrieving revision 1.8
diff -u -r1.8 update.manager.inc
--- modules/update/update.manager.inc	27 Oct 2009 03:34:01 -0000	1.8
+++ modules/update/update.manager.inc	29 Oct 2009 00:12:50 -0000
@@ -119,7 +119,26 @@
     $recommended_release = $project['releases'][$project['recommended']];
     $recommended_version = $recommended_release['version'] . ' ' . l(t('(Release notes)'), $recommended_release['release_link'], array('attributes' => array('title' => t('Release notes for @project_name', array('@project_name' => $project_name)))));
     if ($recommended_release['version_major'] != $project['existing_major']) {
-      $recommended_version .= '<div title="Major upgrade warning" class="update-major-version-warning">' . t('This update is a major version update which means that it may not be backwards compatible with your currently running version.  It is recommended that you read the release notes and proceed at your own risk.') . '</div>';
+      $recommended_version .= '<div title="Major upgrade warning" class="update-major-version-warning" id="warning-' . $project['name'] . '">' . t('This update is a major version update which means that it may not be backwards compatible with your currently running version.  It is recommended that you read the release notes and proceed at your own risk.') . '</div>';
+      // Create a dialog box for the warning.
+      drupal_add_ui(array(
+        'selector' => '#warning-' . $project['name'],
+        'library' => 'ui.dialog',
+        'arguments' => array(
+          array(
+            'autoOpen' => FALSE,
+          ),
+        ),
+      ));
+      // Display the dialog box only when the associated check box is enabled.
+      drupal_add_ui(array(
+        'selector' => '#warning-' . $project['name'],
+        'library' => 'ui.dialog',
+        'arguments' => array('open'),
+        'bound_element' => ".form-checkbox[value='{$project['name']}']",
+        'event' => 'change',
+        'is' => ':checked',
+      ));
     }
 
     // Create an entry for this project.
