summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202020-08-28 17:33:42 +0530
committerGitHub2020-08-28 17:33:42 +0530
commit291539fd4129bc4b15ca5c080b1b4f17ac534649 (patch)
tree8e83494c67177f50689cfbd1fda06a37eb4deab2
parentd1aff4d737307bbf6a25ce213594f6b753c0674e (diff)
parent45a83458466869d33e4b6b4ed14114dd96882100 (diff)
downloadr_textbook_companion-291539fd4129bc4b15ca5c080b1b4f17ac534649.tar.gz
r_textbook_companion-291539fd4129bc4b15ca5c080b1b4f17ac534649.tar.bz2
r_textbook_companion-291539fd4129bc4b15ca5c080b1b4f17ac534649.zip
Merge pull request #44 from Sashi20/drupal_7.x
Update the book preference id in download code page to download the pdf
-rwxr-xr-xtextbook_run.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/textbook_run.inc b/textbook_run.inc
index 99a0619..4689d7f 100755
--- a/textbook_run.inc
+++ b/textbook_run.inc
@@ -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)')) . '<br><span style="color:red;">The generated PDF is not the PDF of the book as named but only is the PDF of the solved example for R</span>';
+ $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)') . t('<br><span style="color:red;">The generated PDF is not the PDF of the book as named but only is the PDF of the solved example for R</span>'));
$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", '');