From 45aa1d9a366edc74e0f51a3734799ea43a2270bb Mon Sep 17 00:00:00 2001
From: Earl Miles <merlin@logrus.com>
Date: Mon, 20 Apr 2009 22:23:12 +0000
Subject: [PATCH] Correct autocomplete paths.

---
 includes/content.inc                          | 2 ++
 plugins/contexts/node.inc                     | 2 +-
 plugins/contexts/node_edit_form.inc           | 2 +-
 views_content/plugins/content_types/views.inc | 2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/includes/content.inc b/includes/content.inc
index a00ddb71..823c2f88 100644
--- a/includes/content.inc
+++ b/includes/content.inc
@@ -454,6 +454,8 @@ function ctools_content_configure_form_defaults(&$form, &$form_state) {
       '#default_value' => isset($conf['override_title_text']) ? $conf['override_title_text'] : '',
       '#size' => 35,
       '#id' => 'override-title-textfield',
+      '#process' => array('ctools_dependent_process'),
+      '#dependency' => array('override-title-checkbox' => array(1)),
     );
     $form['aligner_stop'] = array(
       '#value' => '</div><div style="clear: both; padding: 0; margin: 0"></div>',
diff --git a/plugins/contexts/node.inc b/plugins/contexts/node.inc
index 6a4a1a70..033e2031 100644
--- a/plugins/contexts/node.inc
+++ b/plugins/contexts/node.inc
@@ -99,7 +99,7 @@ function ctools_context_node_settings_form($conf, $external = FALSE) {
     '#title' => t('Enter the title or NID of a post'),
     '#type' => 'textfield',
     '#maxlength' => 512,
-    '#autocomplete_path' => 'ctools/node/autocomplete',
+    '#autocomplete_path' => 'ctools/autocomplete/node',
     '#weight' => -10,
   );
 
diff --git a/plugins/contexts/node_edit_form.inc b/plugins/contexts/node_edit_form.inc
index ac4b1920..cb3267a5 100644
--- a/plugins/contexts/node_edit_form.inc
+++ b/plugins/contexts/node_edit_form.inc
@@ -78,7 +78,7 @@ function ctools_context_node_edit_form_settings_form($conf, $external = FALSE) {
     '#title' => t('Enter the title or NID of a post'),
     '#type' => 'textfield',
     '#maxlength' => 512,
-    '#autocomplete_path' => 'ctools/node/autocomplete',
+    '#autocomplete_path' => 'ctools/autocomplete/node',
     '#weight' => -10,
   );
 
diff --git a/views_content/plugins/content_types/views.inc b/views_content/plugins/content_types/views.inc
index 04522dd4..cda845bc 100644
--- a/views_content/plugins/content_types/views.inc
+++ b/views_content/plugins/content_types/views.inc
@@ -317,6 +317,8 @@ function views_content_views_content_type_edit_form(&$form, &$form_state) {
     '#title' => t('Pager ID'),
     '#size' => 4,
     '#id' => 'use-pager-textfield',
+    '#process' => array('ctools_dependent_process'),
+    '#dependency' => array('use-pager-checkbox' => array(1)),
   );
   $form['pager_aligner_stop'] = array(
     '#value' => '</div><div style="clear: both; padding: 0; margin: 0"></div>',
-- 
GitLab