bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
495 stars 235 forks source link

Duplicate List #209

Closed juliocorral closed 6 years ago

juliocorral commented 7 years ago

Hi,

First thank you for your great plugin.

I have integrated the plugin on our website but we doubled the list of locations when you return to the map after updating the order of real estate by AJAX. You can see what happens if you enter here:

http://www.rentalscollection.com/en/neighborhoods/page_1/donostia-san-sebastian/2/la-concha-beach.php

Press VIEW MAP (11 apartments) then any of the other order tabs and again VIEW MAP and the property list is duplicated the second time (22 apartments).

I create the json file only the first time when user enter to page. And I delete the file before create json file. When I see the json file there are only 11 apartments inside. ????

Any help please? Thank you

juliocorral commented 7 years ago

SOLVED I 've added this:

callbackSuccess: function() { this.reset(); }