rules_link.admin.js 450 B

1234567891011121314151617
  1. /**
  2. * @file
  3. * Ui Tweaks for rules link admin ui.
  4. */
  5. (function($) {
  6. Drupal.behaviors.rules_link = {
  7. attach: function(context) {
  8. $('#edit-entity-type').change(function() {
  9. $('#edit-settings-vars-items-0-type').val($(this).val());
  10. $('#edit-settings-vars-items-0-label').val($('#edit-entity-type option:selected').text());
  11. $('#edit-settings-vars-items-0-name').val($(this).val());
  12. });
  13. }
  14. };
  15. })(jQuery);