summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-05 19:47:20 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-05 19:47:20 +0000
commitae85abb9833e0600afa0595a912be8065f8bccab (patch)
tree93940d8f28f7f5c63c07ecab9d94bdf20544fbbe /modules/path
parente920fe34ef16d30af0f4fb8e33b565e572ab30c8 (diff)
downloadbrdo-ae85abb9833e0600afa0595a912be8065f8bccab.tar.gz
brdo-ae85abb9833e0600afa0595a912be8065f8bccab.tar.bz2
- Patch #955610 by casey: impossible to have multiple node forms on one page due to fixed IDs.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.js4
-rw-r--r--modules/path/path.module3
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/path/path.js b/modules/path/path.js
index e065d94b5..881724df4 100644
--- a/modules/path/path.js
+++ b/modules/path/path.js
@@ -4,8 +4,8 @@
Drupal.behaviors.pathFieldsetSummaries = {
attach: function (context) {
- $('fieldset#edit-path', context).drupalSetSummary(function (context) {
- var path = $('#edit-path-alias').val();
+ $('fieldset.path-form', context).drupalSetSummary(function (context) {
+ var path = $('.form-item-path-alias input').val();
return path ?
Drupal.t('Alias: @alias', { '@alias': path }) :
diff --git a/modules/path/path.module b/modules/path/path.module
index 0e5874357..67ecaa4ea 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -119,6 +119,9 @@ function path_form_node_form_alter(&$form, $form_state) {
'#collapsible' => TRUE,
'#collapsed' => empty($path['alias']),
'#group' => 'additional_settings',
+ '#attributes' => array(
+ 'class' => array('path-form'),
+ ),
'#attached' => array(
'js' => array(drupal_get_path('module', 'path') . '/path.js'),
),