summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-06-24 16:01:49 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-24 21:39:10 +0800
commite9c4259db43dbd2de204295f9cdae8c9cc267a5d (patch)
tree111fc6e1fef554035d21fb2c523824531437bf84 /theme
parentccfdcca6e63336fddf4444e7bcf56c009c6195f7 (diff)
downloadsubsurface-e9c4259db43dbd2de204295f9cdae8c9cc267a5d.tar.gz
HTML: Add export list only option
Exporting small dive list only or choose to export the dive list with all the dive details like the profile, Bookmarks, dive equipments and statistics. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme')
-rw-r--r--theme/list_lib.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index b19c2eafe..a6f1fcb71 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -179,7 +179,7 @@ function getlimited (dive) {
};
function getExpanded (dive) {
- return '<table><tr><td class="words">Date: </td><td>'+dive.date+
+ var res = '<table><tr><td class="words">Date: </td><td>'+dive.date+
'</td><td class="words">&nbsp&nbsp&nbsp&nbsp&nbspTime: </td><td>'+dive.time +
'</td><td class="words">&nbsp&nbsp&nbsp&nbsp&nbspLocation: </td><td>'+'<a onclick=\"Search_list_Modules(\''+dive.location+'\')\">'+
dive.location +'</a>'+
@@ -192,8 +192,11 @@ function getExpanded (dive) {
'</td></tr><tr><td class="words"><p>Buddy: </p></td><td>'+dive.buddy +
'</td></tr><tr><td class="words">Suit: </td><td>'+dive.suit +
'</td></tr><tr><td class="words">Tags: </td><td>'+putTags(dive.tags)+
- '</td></tr></table><div style="margin:10px;"><p class="words">Notes: </p>' + dive.notes +'</div>'+
- '<center><a onclick="showDiveDetails('+dive.number+')">show more details</a></center>';
+ '</td></tr></table><div style="margin:10px;"><p class="words">Notes: </p>' + dive.notes +'</div>';
+ if(settings.listOnly==='0'){
+ res += '<center><a onclick="showDiveDetails('+dive.number+')">show more details</a></center>';
+ }
+ return res;
};
function putTags(tags){