mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: fix unexpectedly ended strings
String concatenation must be stated at the end of a string line (not by starting the next line with the concatenation character). Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9abfe22100
commit
8be25fa9d0
1 changed files with 4 additions and 4 deletions
|
@ -181,8 +181,8 @@ function getlimited (dive) {
|
|||
function getExpanded (dive) {
|
||||
return '<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>'+
|
||||
'</td><td class="words">     Location: </td><td>'+'<a onclick=\"Search_list_Modules(\''+dive.location+'\')\">'+
|
||||
dive.location +'</a>'+
|
||||
'</td></tr></table><table><tr><td class="words">Rating:</td><td>'+putRating(dive.rating)+
|
||||
'</td><td class="words">   Visibilty:</td><td>'+putRating(dive.visibility)+
|
||||
'</td></tr></table>'+
|
||||
|
@ -536,8 +536,8 @@ function showtrips(){
|
|||
var divelist = document.getElementById('diveslist');
|
||||
divelist.innerHTML="";
|
||||
for(var i=0;i<trips.length;i++){
|
||||
divelist.innerHTML+='<ul id="trip_'+i+'" class="trips" onclick="toggle_trip_expansion('+i+')">'
|
||||
+trips[i].name+' ( '+trips[i].dives.length+' dives)'+'</ul>'+'<div id="trip_dive_list_'+i+'"></div>';
|
||||
divelist.innerHTML+='<ul id="trip_'+i+'" class="trips" onclick="toggle_trip_expansion('+i+')">'+
|
||||
trips[i].name+' ( '+trips[i].dives.length+' dives)'+'</ul>'+'<div id="trip_dive_list_'+i+'"></div>';
|
||||
};
|
||||
for(var i=0;i<trips.length;i++){
|
||||
unexpand_trip(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue