Skip to content

Commit f41f3b6

Browse files
authored
Merge pull request #305 from bjorn2404/fix/directions-link
Fix/directions link
2 parents 90e8c1b + a3eac54 commit f41f3b6

13 files changed

+1490
-739
lines changed

Gruntfile.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ module.exports = function (grunt) {
1313
clean : {
1414
files: ['dist']
1515
},
16+
copy: {
17+
templates: {
18+
files: [
19+
{
20+
expand: true,
21+
cwd: 'src/templates/',
22+
src: '**/*.html',
23+
dest: 'dist/assets/js/plugins/storeLocator/templates/',
24+
flatten: true
25+
}
26+
]
27+
}
28+
},
1629
sass : {
1730
dist: {
1831
files: {
@@ -100,6 +113,10 @@ module.exports = function (grunt) {
100113
files: '<%= jshint.gruntfile.src %>',
101114
tasks: ['jshint:gruntfile']
102115
},
116+
templates: {
117+
files: ['src/templates/**/*.html'],
118+
tasks: ['copy']
119+
},
103120
src : {
104121
files : ['src/**/*'],
105122
tasks : ['sass', 'concat', 'uglify', 'usebanner', 'cssmin'],
@@ -117,6 +134,7 @@ module.exports = function (grunt) {
117134
// These plugins provide necessary tasks.
118135
grunt.loadNpmTasks('grunt-contrib-clean');
119136
grunt.loadNpmTasks('grunt-contrib-sass');
137+
grunt.loadNpmTasks('grunt-contrib-copy');
120138
grunt.loadNpmTasks('grunt-contrib-concat');
121139
grunt.loadNpmTasks('grunt-contrib-uglify');
122140
grunt.loadNpmTasks('grunt-contrib-qunit');
@@ -127,7 +145,7 @@ module.exports = function (grunt) {
127145
grunt.loadNpmTasks('grunt-contrib-handlebars');
128146

129147
// Build
130-
grunt.registerTask('build', ['sass', 'concat', 'uglify', 'usebanner', 'cssmin']);
148+
grunt.registerTask('build', ['sass', 'copy', 'concat', 'uglify', 'usebanner', 'cssmin']);
131149

132150
//Watch src build
133151
grunt.registerTask('watchsrc', ['watch:src']);

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "3.4.0",
3+
"version": "3.4.1",
44
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
55
"repository": {
66
"type": "git",

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v3.4.0 - 2024-05-18
1+
/*! jQuery Google Maps Store Locator - v3.4.1 - 2024-12-20
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2024 Bjorn Holine; Licensed MIT */
44

dist/assets/js/plugins/storeLocator/jquery.storelocator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/plugins/storeLocator/templates/location-list-description.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{#if distance}}
1919
<div class="loc-dist loc-default-dist">{{distance}} {{length}}</div>
2020
{{#if altdistance}}<div class="loc-dist loc-alt-dist">{{altdistance}} {{altlength}}</div>{{/if}}
21-
<div class="loc-directions"><a href="https://maps.googleapis.com/maps?saddr={{origin}}&amp;daddr={{address}} {{address2}} {{city}}, {{state}} {{postal}}" target="_blank">Directions</a></div>
21+
<div class="loc-directions"><a href="https://www.google.com/maps/dir/?api=1&amp;origin={{origin}}&amp;destination={{address}} {{address2}} {{city}}, {{state}} {{postal}}" target="_blank">Directions</a></div>
2222
{{/if}}
2323
</div>
2424
</div>

0 commit comments

Comments
 (0)