From e9c4259db43dbd2de204295f9cdae8c9cc267a5d Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Tue, 24 Jun 2014 16:01:49 +0300 Subject: 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 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'theme') 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 '
Date: '+dive.date+ + var res = '
Date: '+dive.date+ '     Time: '+dive.time + '     Location: '+''+ dive.location +''+ @@ -192,8 +192,11 @@ function getExpanded (dive) { '

Buddy:

'+dive.buddy + '
Suit: '+dive.suit + '
Tags: '+putTags(dive.tags)+ - '

Notes:

' + dive.notes +'
'+ - '
show more details
'; + '

Notes:

' + dive.notes +'
'; + if(settings.listOnly==='0'){ + res += '
show more details
'; + } + return res; }; function putTags(tags){ -- cgit v1.2.3-70-g09d2