From b867898394684dcb557ff1d3f219eadba05b62f1 Mon Sep 17 00:00:00 2001
From: Sashi20
Date: Mon, 25 Nov 2019 12:41:09 +0530
Subject: Add help to download and simulate the library
---
run.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/run.inc b/run.inc
index c030d02..337f25f 100755
--- a/run.inc
+++ b/run.inc
@@ -44,7 +44,7 @@ function om_flowsheet_run_form($form, &$form_state)
);
$form['selected_flowsheet'] = array(
'#type' => 'item',
- '#markup' => '
' . l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a mo file which is the OpenModelica flowsheet which is to be viewed by right clicking on the file and opening with OpenModelica.'))) . '
'
+ '#markup' => '' . l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a mo file which is the OpenModelica flowsheet which is to be viewed by right clicking on the file and opening with OpenModelica.'))) . '
Note: This flowsheet is compatible with the simulator version mentioned above. To simulate the flowsheet in OpenModelica, it must be opened with the above Simulator version.
To download the Simulator, click on the Simulator version mentioned above.
'
);
}
return $form;
--
cgit
From 9381e823297e9a87b8122547e726fe90ad0e2dab Mon Sep 17 00:00:00 2001
From: Sashi20
Date: Mon, 25 Nov 2019 15:50:20 +0530
Subject: Add help text to download the library
---
run.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/run.inc b/run.inc
index 337f25f..5961e6c 100755
--- a/run.inc
+++ b/run.inc
@@ -58,7 +58,7 @@ function om_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', 'chemical/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 om flow sheet which is to be viewed by right clicking on the file and opening with om.'))));
+ $commands[] = ajax_command_html('#ajax_selected_flowsheet', l('Download Flowsheet', 'chemical/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 om flow sheet which is to be viewed by right clicking on the file and opening with om.'))) . '
Note: This flowsheet is compatible with the simulator version mentioned above. To simulate the flowsheet in OpenModelica, it must be opened with the above Simulator version.
To download the Simulator, click on the Simulator version mentioned above.
');
} //$flowsheet_details->uid > 0
else {
$commands[] = ajax_command_html('#ajax_selected_flowsheet', '');
--
cgit