content_menu.js 573 B

12345678910111213
  1. (function($){
  2. Drupal.behaviors.content_menu ={
  3. attach:function(context, settings){
  4. // Show menu item title input field when clicking on the trigger.
  5. $('.menu-overview-title-edit-trigger', context).click(function(e) {
  6. $(this).siblings('.form-type-textfield').show().children('input').focus();
  7. $(this).siblings('.menu-overview-title-link').hide();
  8. $(this).hide();
  9. e.stopPropagation();
  10. e.stopImmediatePropagation();
  11. });
  12. }
  13. };})(jQuery);