Index: modules/update/update.manager.js
===================================================================
RCS file: modules/update/update.manager.js
diff -N modules/update/update.manager.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/update/update.manager.js	15 Oct 2009 11:56:22 -0000
@@ -0,0 +1,32 @@
+// $Id$
+
+/**
+ * Adds a popup dialog to warn users when they're upgrading major versions.
+ *
+ * @todo: The dialog doesn't prevent you from clicking "Install these updates".
+ * @todo: The dialog isn't shown if you select a major update via select all.
+ * @todo: The dialog used to have a "cancel" button, but it also just
+ *   closed the dialog. If we add that back, it should uncheck the project.
+ */
+
+(function ($) {
+
+Drupal.behaviors.updateSelectUpdatesForm = {
+  attach: function(context) {
+    // Hide any major version warnings, make a jquery UI dialog when checked.
+    $('.update-major-version-warning').each(function (elem) {
+      self = $(this);
+      $(this).hide();
+      $(":checkbox", $(this).parent().parent()).bind('change', function(e) {
+        if (this.checked) {
+          self.dialog("open");
+          var buttons = {}
+          buttons[Drupal.t("Ok")] = function() { $(this).dialog("close"); };
+          self.dialog({'buttons': buttons});
+        }
+      });
+    });
+  }
+}
+
+})(jQuery);
