Skip to content

Commit

Permalink
take off the checkbox columan and bulk actions.
Browse files Browse the repository at this point in the history
we don't need them now.
  • Loading branch information
seanchen committed Feb 10, 2013
1 parent 3d2ee3a commit fa18e45
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions wp-trac-client/classes/listtables.php
Expand Up @@ -29,7 +29,7 @@ function get_columns() {
// the key will be used in method name to
// customize the column value for each item/row.
$columns = array(
'cb' => '<input type="checkbox" />',
//'cb' => '<input type="checkbox" />',
'name' => 'Name',
'description' => 'Description'
// TODO: should provide the following information.
Expand Down Expand Up @@ -118,24 +118,24 @@ function get_sortable_columns() {
/**
* set bulk actions for checkboxes.
*/
function get_bulk_actions() {
//function get_bulk_actions() {

$actions = array(
'delete' => 'Delete'
);
// $actions = array(
// 'delete' => 'Delete'
// );

return $actions;
}
// return $actions;
//}

/**
* handle bulk action here.
*/
function process_bulk_action() {

if ('delete' === $this->current_action()) {
wp_die('action place holder for now');
}
}
//function process_bulk_action() {
//
// if ('delete' === $this->current_action()) {
// wp_die('action place holder for now');
// }
//}

/**
* get ready the data here.
Expand All @@ -153,7 +153,7 @@ function prepare_items() {

$this->_column_headers = array($columns, $hidden,
$sortable);
$this->process_bulk_action();
//$this->process_bulk_action();

$data = wptc_get_projects();

Expand Down Expand Up @@ -218,7 +218,7 @@ function get_columns() {
// the key will be used in method name to
// customize the column value for each item/row.
$columns = array(
'cb' => '<input type="checkbox" />',
//'cb' => '<input type="checkbox" />',
'name' => 'Name',
'description' => 'Description',
'due_date' => 'Due Date'
Expand Down Expand Up @@ -263,7 +263,8 @@ function column_name($item) {
// using ternary operator.
$nameContent = ($item['type'] === 'version') ?
('— ' . $item['name']) : $item['name'];
$nameContent = "<b>" . $nameContent . "</b>";
$nameContent = "<b><span style='font-size: 15px'>" .
$nameContent . "</span></b>";
$nameHref = sprintf($aTemp, $_REQUEST['page'],
'editmilestone',
$item['name'], $nameContent);
Expand Down Expand Up @@ -311,24 +312,24 @@ function get_sortable_columns() {
/**
* set bulk actions for checkboxes.
*/
function get_bulk_actions() {
//function get_bulk_actions() {

$actions = array(
'delete' => 'Delete'
);
// $actions = array(
// 'delete' => 'Delete'
// );

return $actions;
}
// return $actions;
//}

/**
* handle bulk action here.
*/
function process_bulk_action() {

if ('delete' === $this->current_action()) {
wp_die('action place holder for now');
}
}
//function process_bulk_action() {
//
// if ('delete' === $this->current_action()) {
// wp_die('action place holder for now');
// }
//}

/**
* get ready the data here.
Expand All @@ -345,7 +346,7 @@ function prepare_items() {
//$sortable = $this->get_sortable_columns();

$this->_column_headers = array($columns, $hidden);
$this->process_bulk_action();
//$this->process_bulk_action();

$data = wptc_get_project($this->project_name);
$data = $data['meta'];
Expand Down

0 comments on commit fa18e45

Please sign in to comment.