diff options
Diffstat (limited to 'modules/taxonomy/vocabulary.js')
-rw-r--r-- | modules/taxonomy/vocabulary.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/modules/taxonomy/vocabulary.js b/modules/taxonomy/vocabulary.js deleted file mode 100644 index ff2fd667e..000000000 --- a/modules/taxonomy/vocabulary.js +++ /dev/null @@ -1,29 +0,0 @@ -// $Id$ -(function ($) { - -Drupal.behaviors.contentTypes = { - attach: function () { - if ($('#edit-machine-name').val() == $('#edit-name').val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_') || $('#edit-machine-name').val() == '') { - $('.form-item-machine-name').hide(); - $('#edit-name').keyup(function () { - var machine = $(this).val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_'); - if (machine != '_' && machine != '') { - $('#edit-machine-name').val(machine); - $('#vocabulary-name-suffix').empty().append(' Machine name: ' + machine + ' [').append($('<a href="#">' + Drupal.t('Edit') + '</a>').click(function () { - $('.form-item-machine-name').show(); - $('#vocabulary-name-suffix').hide(); - $('#edit-name').unbind('keyup'); - return false; - })).append(']'); - } - else { - $('#edit-machine-name').val(machine); - $('#vocabulary-name-suffix').text(''); - } - }); - $('#edit-name').keyup(); - } - } -}; - -})(jQuery); |