stableversion-3.0
Last change
on this file since 49072ea was
49072ea,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se actualizo el modulo
|
-
Propiedad mode establecida a
100755
|
File size:
1.3 KB
|
Línea | |
---|
1 | if (Drupal.jsEnabled) { |
---|
2 | $(document).ready(function() { |
---|
3 | if ($("#edit-pathauto-perform-alias").size() && $("#edit-pathauto-perform-alias").attr("checked")) { |
---|
4 | // Disable input and hide its description. |
---|
5 | $("#edit-path").attr("disabled","disabled"); |
---|
6 | $("#edit-path-wrapper > div.description").hide(0); |
---|
7 | } |
---|
8 | $("#edit-pathauto-perform-alias").bind("click", function() { |
---|
9 | if ($("#edit-pathauto-perform-alias").attr("checked")) { |
---|
10 | // Auto-alias checked; disable input. |
---|
11 | $("#edit-path").attr("disabled","disabled"); |
---|
12 | $("#edit-path-wrapper > div[class=description]").slideUp('fast'); |
---|
13 | } |
---|
14 | else { |
---|
15 | // Auto-alias unchecked; enable input. |
---|
16 | $("#edit-path").removeAttr("disabled"); |
---|
17 | $("#edit-path")[0].focus(); |
---|
18 | $("#edit-path-wrapper > div[class=description]").slideDown('fast'); |
---|
19 | } |
---|
20 | }); |
---|
21 | }); |
---|
22 | |
---|
23 | Drupal.verticalTabs = Drupal.verticalTabs || {}; |
---|
24 | |
---|
25 | Drupal.verticalTabs.path = function() { |
---|
26 | var path = $('#edit-path').val(); |
---|
27 | var automatic = $('#edit-pathauto-perform-alias').attr('checked'); |
---|
28 | |
---|
29 | if (automatic) { |
---|
30 | return Drupal.t('Automatic alias'); |
---|
31 | } |
---|
32 | if (path) { |
---|
33 | return Drupal.t('Alias: @alias', { '@alias': path }); |
---|
34 | } |
---|
35 | else { |
---|
36 | return Drupal.t('No alias'); |
---|
37 | } |
---|
38 | } |
---|
39 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.