diff --git a/core/includes/authorize.inc b/core/includes/authorize.inc
index cf55624..87eeb27 100644
--- a/core/includes/authorize.inc
+++ b/core/includes/authorize.inc
@@ -23,7 +23,7 @@ function authorize_filetransfer_form($form, &$form_state) {
 
   // CSS we depend on lives in modules/system/maintenance.css, which is loaded
   // via the default maintenance theme.
-  $form['#attached']['js'][] = $base_url . '/misc/authorize.js';
+  $form['#attached']['js'][] = $base_url . '/core/misc/authorize.js';
 
   // Get all the available ways to transfer files.
   if (empty($_SESSION['authorize_filetransfer_info'])) {
diff --git a/core/misc/authorize.js b/core/misc/authorize.js
index aa4575d..9567016 100644
--- a/core/misc/authorize.js
+++ b/core/misc/authorize.js
@@ -10,15 +10,14 @@
 
 Drupal.behaviors.authorizeFileTransferForm = {
   attach: function(context) {
-    $('#edit-connection-settings-authorize-filetransfer-default').change(function() {
-      $('.filetransfer').hide().filter('.filetransfer-' + $(this).val()).show();
-    });
-    $('.filetransfer').hide().filter('.filetransfer-' + $('#edit-connection-settings-authorize-filetransfer-default').val()).show();
+    var $filetransfer = $('.filetransfer');
+    var $connectionSettings = $('#edit-connection-settings-authorize-filetransfer-default');
 
-    // Removes the float on the select box (used for non-JS interface).
-    if ($('.connection-settings-update-filetransfer-default-wrapper').length > 0) {
-      $('.connection-settings-update-filetransfer-default-wrapper').css('float', 'none');
+    function handleSettingsChange() {
+      $filetransfer.hide().filter('.filetransfer-' + $connectionSettings.val()).show();
     }
+    $connectionSettings.change(handleSettingsChange).triggerHandler('change');
+
     // Hides the submit button for non-js users.
     $('#edit-submit-connection').hide();
     $('#edit-submit-process').show();
diff --git a/core/modules/system/system.maintenance.css b/core/modules/system/system.maintenance.css
index c6a5a49..8d53dfc 100644
--- a/core/modules/system/system.maintenance.css
+++ b/core/modules/system/system.maintenance.css
@@ -26,9 +26,6 @@
 /**
  * Authorize.php styles
  */
-.connection-settings-update-filetransfer-default-wrapper {
-  float: left;
-}
 #edit-submit-connection {
   clear: both;
 }
