Index: sites/all/modules/nodeadmin/nodeadmin.module =================================================================== RCS file: /cvs/repos/WP-SKM-DEV/sites/all/modules/nodeadmin/nodeadmin.module,v retrieving revision 1.2 diff -u -r1.2 nodeadmin.module --- sites/all/modules/nodeadmin/nodeadmin.module 28 Jun 2010 00:35:22 -0000 1.2 +++ sites/all/modules/nodeadmin/nodeadmin.module 28 Jun 2010 01:20:15 -0000 @@ -44,7 +44,7 @@ /** * Implementation of hook_form_alter(). - * + * * Add node title to the node delete confirmation form * for improved clarity. */ @@ -84,12 +84,12 @@ if (module_exists('search')) { $output .= '
Filter by text content:
'; } - $output .= '
Results per page:  
'; - $output .= '
Add new content by type:
'; + $output .= '
Results per page:  
'; +// $output .= '
Add new content by type:
'; $results = array(); nodeadmin_ajax_query($results); @@ -100,9 +100,12 @@ if (is_array($node_data) && count($node_data)) { foreach ($node_data as $nid => $node) { $links = ''; - $links .= "". t("; - $links .= " ". t("; - $links .= " ". t("; +// $links .= "". t("; +// $links .= " ". t("; +// $links .= " ". t("; + $links .= "". t("; + $links .= " ". t("; + $links .= " ". t("; $row = array( array( 'data' => $links, @@ -157,7 +160,7 @@ if (is_array($options)) { $op = strtolower($options['ajax']); $results = array('op' => $op); - + if ($op == 'query') { nodeadmin_ajax_query($results, $options); } @@ -171,7 +174,7 @@ $results['status'] = 'error'; $results['message'] = 'Invalid operation'; } - + echo(json_encode($results)); exit(0); } @@ -291,6 +294,7 @@ // if text search results exist, intersect with query results if (!is_array($text_results) || in_array($obj->nid, $text_results)) { $results['nodeData'][$obj->nid] = $obj; + $results['nodeData'][$obj->nid]->path = drupal_get_path_alias('node/'.$obj->nid); } } if (is_array($text_results)) { @@ -329,7 +333,7 @@ $results['form'] = $formtype; if (is_numeric($options['token']) && $options['token'] >= 0) { $results['token'] = $options['token']; - } + } if ($formtype == 'add' && !empty($options['nodetype']) && node_access('create', $options['nodetype'])) { $results['nodetype'] = $options['nodetype']; module_load_include('inc', 'node', 'node.pages'); @@ -382,7 +386,7 @@ } /** - * Returns an array structure of the JavaScript files + * Returns an array structure of the JavaScript files * and inline code included by all current processing. */ function nodeadmin_get_js() { Index: sites/all/modules/nodeadmin/nodeadmin.js =================================================================== RCS file: /cvs/repos/WP-SKM-DEV/sites/all/modules/nodeadmin/nodeadmin.js,v retrieving revision 1.2 diff -u -r1.2 nodeadmin.js --- sites/all/modules/nodeadmin/nodeadmin.js 28 Jun 2010 00:35:22 -0000 1.2 +++ sites/all/modules/nodeadmin/nodeadmin.js 28 Jun 2010 01:20:15 -0000 @@ -61,7 +61,8 @@ dateChanged = new Date(nodeData[nid].changed * 1000); dateString = dateChanged.getFullYear() + '/' + padNumber(dateChanged.getMonth(), 2) + '/' + padNumber(dateChanged.getDate(), 2) + ' - ' + padNumber(dateChanged.getHours(), 2) + ':' + padNumber(dateChanged.getMinutes(), 2); isOpen = nodeState.view && nodeState.view[nid]; - tableBody.append('' + formatNodeButtons(nid, isOpen) + '' + nodeData[nid].title + '' + typeData[nodeData[nid].type] + '' + nodeData[nid].name + '' + dateString + ''); +// tableBody.append('' + formatNodeButtons(nid, isOpen) + '' + nodeData[nid].title + '' + typeData[nodeData[nid].type] + '' + nodeData[nid].name + '' + dateString + ''); + tableBody.append('' + formatNodeButtons(nid, isOpen) + '' + nodeData[nid].title + '' + typeData[nodeData[nid].type] + '' + nodeData[nid].name + '' + nodeData[nid].formattedDate + ''); if (isOpen) { tableBody.append('' + nodeState.view[nid] + ''); } @@ -372,12 +373,19 @@ } function formatNodeButtons(nid, opened) { - str = "View" + - " Edit" + +// str = "View" + +// " Edit" + +// " Delete"; +// if (opened) { +// str += " Close"; +// } +// str = "View" + + str = "View" + + " Edit" + " Delete"; - if (opened) { - str += " Close"; - } + if (opened) { + str += " Close"; + } return str; }