|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/afglcweb/ny/sites/all/modules/pathauto/ |
Upload File : |
// $Id: pathauto.js,v 1.4.2.2 2010/02/10 21:50:30 greggles Exp $
if (Drupal.jsEnabled) {
$(document).ready(function() {
if ($("#edit-pathauto-perform-alias").size() && $("#edit-pathauto-perform-alias").attr("checked")) {
// Disable input and hide its description.
$("#edit-path").attr("disabled","disabled");
$("#edit-path-wrapper > div.description").hide(0);
}
$("#edit-pathauto-perform-alias").bind("click", function() {
if ($("#edit-pathauto-perform-alias").attr("checked")) {
// Auto-alias checked; disable input.
$("#edit-path").attr("disabled","disabled");
$("#edit-path-wrapper > div[class=description]").slideUp('fast');
}
else {
// Auto-alias unchecked; enable input.
$("#edit-path").removeAttr("disabled");
$("#edit-path")[0].focus();
$("#edit-path-wrapper > div[class=description]").slideDown('fast');
}
});
});
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.path = function() {
var path = $('#edit-path').val();
var automatic = $('#edit-pathauto-perform-alias').attr('checked');
if (automatic) {
return Drupal.t('Automatic alias');
}
if (path) {
return Drupal.t('Alias: @alias', { '@alias': path });
}
else {
return Drupal.t('No alias');
}
}
}