summaryrefslogtreecommitdiff
path: root/modules/node/content_types.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/content_types.js')
-rw-r--r--modules/node/content_types.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/content_types.js b/modules/node/content_types.js
index 8b32ae8ea..bee78bc83 100644
--- a/modules/node/content_types.js
+++ b/modules/node/content_types.js
@@ -1,15 +1,15 @@
// $Id$
-(function($) {
+(function ($) {
Drupal.behaviors.contentTypes = {
- attach: function() {
+ attach: function () {
if ($('#edit-type').val() == $('#edit-name').val().toLowerCase().replace(/[^a-z0-9]+/g, '_').replace(/_+/g, '_') || $('#edit-type').val() == '') {
$('#edit-type-wrapper').hide();
- $('#edit-name').keyup(function() {
+ $('#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() {
+ $('#node-type-name-suffix').empty().append(' Machine name: ' + machine + ' [').append($('<a href="#">' + Drupal.t('Edit') + '</a>').click(function () {
$('#edit-type-wrapper').show();
$('#node-type-name-suffix').hide();
$('#edit-name').unbind('keyup');