diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-04 14:57:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-04 14:57:23 +0000 |
commit | a0d19b08104768d09274e644d8e0f439316714b0 (patch) | |
tree | 7b4f3b7a3e65dd8d9991446cacb29b32d58d37ff /modules/node/content_types.js | |
parent | 2e0a4d26af0d47b177fd855ba5dfc1d8c50aa929 (diff) | |
download | brdo-a0d19b08104768d09274e644d8e0f439316714b0.tar.gz brdo-a0d19b08104768d09274e644d8e0f439316714b0.tar.bz2 |
- Patch #482636 by quicksketch: further clean-up of the form IDs/classes.
Diffstat (limited to 'modules/node/content_types.js')
-rw-r--r-- | modules/node/content_types.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/content_types.js b/modules/node/content_types.js index bee78bc83..e182d3452 100644 --- a/modules/node/content_types.js +++ b/modules/node/content_types.js @@ -4,13 +4,13 @@ Drupal.behaviors.contentTypes = { attach: function () { if ($('#edit-type').val() == $('#edit-name').val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_') || $('#edit-type').val() == '') { - $('#edit-type-wrapper').hide(); + $('.form-item-type-wrapper').hide(); $('#edit-name').keyup(function () { var machine = $(this).val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_'); if (machine != '_' && machine != '') { $('#edit-type').val(machine); $('#node-type-name-suffix').empty().append(' Machine name: ' + machine + ' [').append($('<a href="#">' + Drupal.t('Edit') + '</a>').click(function () { - $('#edit-type-wrapper').show(); + $('.form-item-type-wrapper').show(); $('#node-type-name-suffix').hide(); $('#edit-name').unbind('keyup'); return false; |