travlrmap 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/travlrmap/sinatra_app.rb +5 -1
- data/lib/travlrmap/version.rb +1 -1
- data/public/datepicker/bootstrap-datepicker.js +1681 -0
- data/public/datepicker/datepicker3.css +786 -0
- data/views/_point_comment.erb +5 -5
- data/views/geolocate.erb +11 -2
- data/views/layout.erb +1 -2
- metadata +5 -3
@@ -129,7 +129,11 @@ module Travlrmap
|
|
129
129
|
point = {}
|
130
130
|
|
131
131
|
["title", "comment", "country", "date", "href", "linktext", "linkimg", "lon", "lat"].each do |i|
|
132
|
-
|
132
|
+
if data[i].is_a?(String)
|
133
|
+
point[i.intern] = data[i] unless data[i].empty?
|
134
|
+
else
|
135
|
+
point[i.intern] = data[i]
|
136
|
+
end
|
133
137
|
end
|
134
138
|
|
135
139
|
point[:type] = data["type"].intern
|
data/lib/travlrmap/version.rb
CHANGED