drupal-6.x
Last change
on this file was
ffa4103,
checked in by Luis Peña <lpena@…>, 12 años ago
|
Cambiando el nombre de modulos a modules
|
-
Propiedad mode establecida a
100755
|
File size:
1.3 KB
|
Línea | |
---|
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 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.