summaryrefslogtreecommitdiff
path: root/run.inc
diff options
context:
space:
mode:
authorSashi202020-02-11 15:06:56 +0530
committerGitHub2020-02-11 15:06:56 +0530
commitbdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d (patch)
tree46f578cf69cb531e266a0920743b30c218f65343 /run.inc
parent5884ad7ce0931b8c68ba6bb59041d70652cb2561 (diff)
parent2c9dd81a51984958591f5eb6a2d86fc3803794f2 (diff)
downloaddwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.tar.gz
dwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.tar.bz2
dwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.zip
Merge pull request #38 from Sashi20/drupal_7.x
Add link to download abstract
Diffstat (limited to 'run.inc')
-rwxr-xr-xrun.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/run.inc b/run.inc
index 929334e..c118edf 100755
--- a/run.inc
+++ b/run.inc
@@ -44,7 +44,7 @@ function dwsim_flowsheet_run_form($form, &$form_state)
);
$form['selected_flowsheet'] = array(
'#type' => 'item',
- '#markup' => '<div id="ajax_selected_flowsheet">' . l('Download Flowsheet', 'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))) . '</div>'
+ '#markup' => '<div id="ajax_selected_flowsheet">' . l('Download Abstract', 'flowsheeting-project/download/project-file/' . $flowsheet_default_value) . '<br>' . l('Download Flowsheet', 'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))) . '</div>'
);
}
return $form;
@@ -58,7 +58,7 @@ function dwsim_flowsheet_project_details_callback($form, $form_state)
$flowsheet_details = _flowsheet_information($flowsheet_default_value);
$provider = user_load($flowsheet_details->uid);
if ($flowsheet_details->uid > 0) {
- $commands[] = ajax_command_html('#ajax_selected_flowsheet', l('Download Flowsheet', 'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))));
+ $commands[] = ajax_command_html('#ajax_selected_flowsheet',l('Download Abstract', 'flowsheeting-project/download/project-file/' . $flowsheet_default_value) . '<br>' . l('Download Flowsheet', 'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))));
} //$flowsheet_details->uid > 0
else {
$commands[] = ajax_command_html('#ajax_selected_flowsheet', '');