| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 // $Id: pathauto.js,v 1.4.2.2 2010/02/10 21:50:30 greggles Exp $ 2 if (Drupal.jsEnabled) { 3 $(document).ready(function() { 4 if ($("#edit-pathauto-perform-alias").size() && $("#edit-pathauto-perform-alias").attr("checked")) { 5 // Disable input and hide its description. 6 $("#edit-path").attr("disabled","disabled"); 7 $("#edit-path-wrapper > div.description").hide(0); 8 } 9 $("#edit-pathauto-perform-alias").bind("click", function() { 10 if ($("#edit-pathauto-perform-alias").attr("checked")) { 11 // Auto-alias checked; disable input. 12 $("#edit-path").attr("disabled","disabled"); 13 $("#edit-path-wrapper > div[class=description]").slideUp('fast'); 14 } 15 else { 16 // Auto-alias unchecked; enable input. 17 $("#edit-path").removeAttr("disabled"); 18 $("#edit-path")[0].focus(); 19 $("#edit-path-wrapper > div[class=description]").slideDown('fast'); 20 } 21 }); 22 }); 23 24 Drupal.verticalTabs = Drupal.verticalTabs || {}; 25 26 Drupal.verticalTabs.path = function() { 27 var path = $('#edit-path').val(); 28 var automatic = $('#edit-pathauto-perform-alias').attr('checked'); 29 30 if (automatic) { 31 return Drupal.t('Automatic alias'); 32 } 33 if (path) { 34 return Drupal.t('Alias: @alias', { '@alias': path }); 35 } 36 else { 37 return Drupal.t('No alias'); 38 } 39 } 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |