diff options
-rwxr-xr-x | code_approval.inc | 6 | ||||
-rwxr-xr-x | latex.inc | 2 | ||||
-rwxr-xr-x | textbook_run.inc | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/code_approval.inc b/code_approval.inc index b0da7f3..e6a9519 100755 --- a/code_approval.inc +++ b/code_approval.inc @@ -291,14 +291,14 @@ function bulk_approval_form($form, &$form_state) '#type' => 'item', '#markup' => '<div id="ajax_selected_book"></div>' ); - /*$form['download_pdf'] = array( + $form['download_pdf'] = array( '#type' => 'item', '#markup' => '<div id="ajax_selected_book_pdf"></div>', ); $form['regenrate_book'] = array( '#type' => 'item', '#markup' => '<div id="ajax_selected_book_regenerate_pdf"></div>', - );*/ + ); $form['notes_book'] = array( '#type' => 'item', '#markup' => '<div id="ajax_selected_book_notes"></div>' @@ -1211,7 +1211,7 @@ function ajax_bulk_chapter_list_callback($form, $form_state) if ($book_default_value > 0) { $commands[] = ajax_command_html('#ajax_selected_book', l('Download', 'textbook-companion/full-download/book/' . $book_default_value) . ' ' . t('(Download all the approved and unapproved examples of the entire book)')); $commands[] = ajax_command_html('#ajax_selected_book_pdf', l('Download PDF', 'textbook-companion/generate-book/' . $book_default_value . '/1') . ' ' . t('(Download PDF of all the approved and unapproved examples of the entire book)')); - $commands[] = ajax_command_html('#ajax_selected_book_regenerate_pdf', l('Regenerate PDF', 'textbook_companion/delete_book/' . $book_default_value) . ' ' . t('(Manually Regenerate PDF of the entire book)')); + $commands[] = ajax_command_html('#ajax_selected_book_regenerate_pdf', l('Regenerate PDF', 'textbook-companion/delete-book/' . $book_default_value) . ' ' . t('(Manually Regenerate PDF of the entire book)')); /*$commands[] = ajax_command_html('#ajax_selected_book_notes', l('Notes for Reviewers', 'code_approval/notes/' . $book_default_value));*/ $form['book_actions']['#options'] = _bulk_list_book_actions(); $commands[] = ajax_command_replace('#ajax_selected_book_action', drupal_render($form['book_actions'])); @@ -236,6 +236,6 @@ function textbook_companion_delete_book() $book_id = arg(2); del_book_pdf($book_id); drupal_set_message(t('Book schedule for regeneration.'), 'status'); - drupal_goto('code_approval/bulk'); + drupal_goto('textbook-companion/code-approval/bulk'); return; } diff --git a/textbook_run.inc b/textbook_run.inc index dc05cca..9eb3cca 100755 --- a/textbook_run.inc +++ b/textbook_run.inc @@ -81,7 +81,7 @@ function textbook_companion_book_run_form($form, &$form_state) ); $form['download_pdf'] = array( '#type' => 'item', - '#markup' => '<div id="ajax-download-book-pdf-replace">' . l('Download PDF', 'textbook_companion/generate_book/' . $book_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)') . '</div>' + '#markup' => '<div id="ajax-download-book-pdf-replace">' . l('Download PDF', 'textbook-companion/generate-book/' . $book_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)') . '</div>' ); $form['chapter'] = array( '#type' => 'select', @@ -334,7 +334,7 @@ function ajax_chapter_list_callback($form, $form_state) $commands[] = ajax_command_html("#ajax-book-details-replace", _html_book_info($book_list_default_value)); $form['chapter']['#options'] = _list_of_chapters($book_list_default_value); $commands[] = ajax_command_html("#ajax-download-book-replace", l('Download', 'textbook-companion/download/book/' . $book_list_default_value) . ' ' . t('(Download the R codes for all the solved examples)')); - $commands[] = ajax_command_html("#ajax-download-book-pdf-replace", l('Download PDF', 'textbook_companion/generate_book/' . $book_list_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)')); + $commands[] = ajax_command_html("#ajax-download-book-pdf-replace", l('Download PDF', 'textbook-companion/generate-book/' . $book_list_default_value) . ' ' . t('(Download the PDF file containing R codes for all the solved examples)')); $commands[] = ajax_command_replace("#ajax-chapter-list-replace", drupal_render($form['chapter'])); $commands[] = ajax_command_html("#ajax-example-list-replace", ''); $commands[] = ajax_command_html("#ajax-download-example-code-replace", ''); |