diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-24 16:01:49 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-24 21:39:10 +0800 |
commit | e9c4259db43dbd2de204295f9cdae8c9cc267a5d (patch) | |
tree | 111fc6e1fef554035d21fb2c523824531437bf84 /theme | |
parent | ccfdcca6e63336fddf4444e7bcf56c009c6195f7 (diff) | |
download | subsurface-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.js | 9 |
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">     Time: </td><td>'+dive.time + '</td><td class="words">     Location: </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){ |