
Drupal Google Store Locator module modification needed
- or -
Post a project like this4232
$$
- Posted:
- Proposals: 2
- Remote
- #503829
- Awarded
Description
Experience Level: Intermediate
General information for the website: Store locator module
Description of requirements/features: Hi there,
I am pretty new to drupal and don't know much about coding, i've installed Google Store Locator module and it works perfectly. i just want the feature-filter list to be select list instead of checkbox
from this:
http://storelocator.googlecode.com/git/examples/dynamic.html
to this:
http://jsfiddle.net/doktormolle/HKUrf/
this has to be done on the drupal Google Store Locator module
I think the code that prints the checkbox is this
if (a.c.featureFilter) {
a.d = $('');
for (var b = a.get("view").getFeatures().asList(), c = 0, e = b[B]; c < e; c++) {
var i = b[c],
k = $('');
k.data("feature", i);
$("")[G](k)[G](i.getDisplayName()).appendTo(a.d)
}
a.e[G](a.d);
a.d[r]("input").change(function () {
var b = $(this).data("feature"),
c = a.get("featureFilter");
c.toggle(b);
a.set("featureFilter", c);
a.get("view").refreshView()
})
}
the code can be found here
https://code.google.com/p/storelocator/source/browse/js/store-locator.compiled.js?r=6f0a32029d81d78b2399e5042704d8cc6305f511
Please help
Extra notes:
Description of requirements/features: Hi there,
I am pretty new to drupal and don't know much about coding, i've installed Google Store Locator module and it works perfectly. i just want the feature-filter list to be select list instead of checkbox
from this:
http://storelocator.googlecode.com/git/examples/dynamic.html
to this:
http://jsfiddle.net/doktormolle/HKUrf/
this has to be done on the drupal Google Store Locator module
I think the code that prints the checkbox is this
if (a.c.featureFilter) {
a.d = $('');
for (var b = a.get("view").getFeatures().asList(), c = 0, e = b[B]; c < e; c++) {
var i = b[c],
k = $('');
k.data("feature", i);
$("")[G](k)[G](i.getDisplayName()).appendTo(a.d)
}
a.e[G](a.d);
a.d[r]("input").change(function () {
var b = $(this).data("feature"),
c = a.get("featureFilter");
c.toggle(b);
a.set("featureFilter", c);
a.get("view").refreshView()
})
}
the code can be found here
https://code.google.com/p/storelocator/source/browse/js/store-locator.compiled.js?r=6f0a32029d81d78b2399e5042704d8cc6305f511
Please help
Extra notes:
Saleem A.
100% (3)Projects Completed
4
Freelancers worked with
4
Projects awarded
44%
Last project
27 Mar 2015
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies