diff --git a/README.txt b/README.txt
index 28c2498..070c73d 100644
--- a/README.txt
+++ b/README.txt
@@ -52,7 +52,7 @@ Any page can be opened in a dialog by adding an HTML attribute to the link that
 should trigger the dialog.
 
 Make sure that the Drupal AJAX library is available:
- * $build['#attached']['library'][] = array('system', 'drupal.ajax');
+ * $build['#attached']['library'][] = array('dialog', 'drupal.dialog.ajax');
 
 Create a link with the class 'use-ajax' and the data-attribute
 'data-dialog="true"' signaling that the response should be loaded in a dialog:
diff --git a/modules/dialog_comment/dialog_comment.module b/modules/dialog_comment/dialog_comment.module
index 2bd45b9..3024485 100644
--- a/modules/dialog_comment/dialog_comment.module
+++ b/modules/dialog_comment/dialog_comment.module
@@ -10,7 +10,7 @@
  */
 function dialog_comment_node_view($node, $view_mode, $langcode) {
   // Attach the library for handling the dialog in the response.
-  $node->content['#attached']['library'][] = array('system', 'drupal.ajax');
+  $node->content['#attached']['library'][] = array('dialog', 'drupal.dialog.ajax');
 }
 
 /**
diff --git a/modules/dialog_node/dialog_node.module b/modules/dialog_node/dialog_node.module
index 80e4909..da78dc5 100644
--- a/modules/dialog_node/dialog_node.module
+++ b/modules/dialog_node/dialog_node.module
@@ -10,7 +10,7 @@
  */
 function dialog_node_form_node_admin_content_alter(&$form, &$form_state, $form_id) {
   // Attach the library for handling the dialog in the response.
-  $form['#attached']['library'][] = array('system', 'drupal.ajax');
+  $form['#attached']['library'][] = array('dialog', 'drupal.dialog.ajax');
 
   $admin_access = user_access('administer nodes');
 
diff --git a/modules/dialog_user/dialog_user.module b/modules/dialog_user/dialog_user.module
index 83b2d27..8dc65ac 100644
--- a/modules/dialog_user/dialog_user.module
+++ b/modules/dialog_user/dialog_user.module
@@ -12,7 +12,7 @@ function dialog_user_block_view_alter(&$data, $block) {
   switch ($block->delta) {
     case 'login':
       // Attach the library for handling the dialog in the response.
-      $data['content']['#attached']['library'][] = array('system', 'drupal.ajax');
+      $data['content']['#attached']['library'][] = array('dialog', 'drupal.dialog.ajax');
       break;
   }
 }
