franck@0: Add vocab. Adding second item to page does not trigger d-n-d transformation. franck@0: * Might be a problem with Taxonomy. Menus doesn't have problem (adds d-n-d on first item). franck@0: * Comment view: popup is too small to contain comment. franck@0: */ franck@0: franck@0: /** franck@0: * hook_popups franck@0: * franck@0: * This implements hook_popups, defined in popups_get_popups. franck@0: * It adds page-in-popup behavior to the core admin pages. franck@0: * See the comments in popups_add_popups for explination of the options. franck@0: * franck@0: */ franck@0: function popups_admin_popups() { franck@0: franck@0: return array( franck@0: 'admin/build/block' => array( // Blocks admin page. franck@0: '#tabs-wrapper a[href$=admin/build/block/add]', // Add Block franck@0: '#blocks a[href~=admin/build/block/configure]', // configure franck@0: '#blocks a[href~=admin/build/block/delete]', // delete franck@0: ), franck@0: 'admin/build/block/list/*' => array( // Blocks admin page. franck@0: '#tabs-wrapper a[href$=admin/build/block/add]', // Add Block franck@0: '#blocks a[href~=admin/build/block/configure]', // configure franck@0: '#blocks a[href~=admin/build/block/delete]', // delete franck@0: ), franck@0: 'admin/build/path' => array( // URL aliases admin page. franck@0: '#tabs-wrapper a[href$=admin/build/path/add]', // Add alias franck@0: 'td:nth-child(3) a[href~=admin/build/path/edit]', // edit alias franck@0: 'td:nth-child(4) a[href~=admin/build/path/delete]', // delete alias franck@0: ), franck@0: 'admin/content/taxonomy' => array( // Taxonomy admin page. franck@0: '#tabs-wrapper a[href$=admin/content/taxonomy/add/vocabulary]', // Add vocabulary franck@0: '#taxonomy-overview-vocabularies td a:contains('. t('edit vocabulary') .')', // edit vocabulary franck@0: '#taxonomy-overview-vocabularies td a:contains('. t('list terms') .')' => array( // list terms franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: '#taxonomy-overview-vocabularies td a:contains('. t('add terms') .')' => array( // add terms franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: ), franck@0: 'admin/content/types' => array( // Content Type admin page franck@0: '#tabs-wrapper a[href$=admin/content/types/add]', // Add content type franck@0: 'table td:nth-child(4) a, table td:nth-child(5) a, table td:nth-child(7) a' // edit, add field, delete franck@0: ), franck@0: 'admin/content/types/list' => array( // Content Type admin page franck@0: '#tabs-wrapper a[href$=admin/content/types/add]', // Add content type franck@0: 'table td:nth-child(4) a, table td:nth-child(5) a, table td:nth-child(7) a' // edit, add field, delete franck@0: ), franck@0: 'admin/content/node' => array( // Existing Content admin page franck@0: '#node-admin-content td a:contains('. t('edit') .')', // edit franck@0: ), franck@0: // 'page_node_form' => array( // Node edit form franck@0: 'node/add/*' => array( // Node edit form franck@0: 'a[href$=filter/tips]' => array( // Fixes insane "More information..." link franck@0: 'noUpdate' => TRUE, franck@0: ) franck@0: ), franck@0: 'admin/content/comment' => array( // Comments admin page. franck@0: 'table td:nth-child(2) a' => array( // view (TODO: popup too small) franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: '#comment-admin-overview td a:contains('. t('edit') .')', // edit franck@0: ), franck@0: 'admin/user/rules' => array( // Access rules admin page. franck@0: '#tabs-wrapper a[href$=admin/user/rules/add]', // Add rule franck@0: 'table td:nth-child(4) a, table td:nth-child(5) a', // edit, delete franck@0: '#tabs-wrapper a[href$=/admin/user/rules/check]' => array( // Check rule franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: ), franck@0: 'admin/user/user' => array( // Manage all users admin page. franck@0: //Add user (TODO: Can't test, keeps crashing apache!) franck@0: '#tabs-wrapper a[href$=admin/user/user/create]', franck@0: '#user-admin-account td:nth-child(2) a' => array( // View the user franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: franck@0: ), franck@0: 'menu_overview_form' => array( // Menu admin form. franck@0: // Add Item, , edit, delete franck@0: '#tabs-wrapper a:eq(1), table#menu-overview td:nth-child(5) a, table#menu-overview td:nth-child(6) a', franck@0: '#tabs-wrapper a:eq(2)' => array( // Edit menu: update just page title. franck@0: 'updateTitle' => TRUE, franck@0: 'noUpdate' => TRUE, franck@0: ), franck@0: ), franck@0: franck@0: ); franck@0: } franck@0: franck@0: