summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-11 22:19:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-11 22:19:46 +0000
commite888f0061cb7ca2f07b38ad4ff09da99faa75580 (patch)
treeb1ffa36ead61e0061e99fdb4c33a8ea823eb4af5 /modules/path
parentf278da9e50815f279ce4c7bda993f5d21b43efa3 (diff)
downloadbrdo-e888f0061cb7ca2f07b38ad4ff09da99faa75580.tar.gz
brdo-e888f0061cb7ca2f07b38ad4ff09da99faa75580.tar.bz2
#323112 by dmitrig01, kkaefer, quicksketch, frando and many many more: Now presenting... Vertical Tabs. Fantastic new UI improvement for node forms and hopefully more in the future.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.js17
-rw-r--r--modules/path/path.module2
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/path/path.js b/modules/path/path.js
new file mode 100644
index 000000000..e801a9a26
--- /dev/null
+++ b/modules/path/path.js
@@ -0,0 +1,17 @@
+// $Id$
+
+(function($) {
+
+Drupal.behaviors.pathFieldsetSummaries = {
+ attach: function(context) {
+ $('fieldset#edit-path', context).setSummary(function(context) {
+ var path = $('#edit-path-1').val();
+
+ return path ?
+ Drupal.t('Alias: @alias', { '@alias': path }) :
+ Drupal.t('No alias');
+ });
+ }
+};
+
+})(jQuery);
diff --git a/modules/path/path.module b/modules/path/path.module
index 6c6af2343..9c813f809 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -194,6 +194,8 @@ function path_form_alter(&$form, $form_state, $form_id) {
'#title' => t('URL path settings'),
'#collapsible' => TRUE,
'#collapsed' => empty($path),
+ '#group' => 'additional_settings',
+ '#attached_js' => array(drupal_get_path('module', 'path') . '/path.js'),
'#access' => user_access('create url aliases'),
'#weight' => 30,
);