aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2015-08-11 15:45:12 -0300
committerSilvio <silvio@socioambiental.org>2015-08-11 15:45:12 -0300
commit5337aa48888f7e2f6792a4309315ab1e4256d8b7 (patch)
treeca5c601e2d71936288062577bafbee6f39f1a29d
parentb0eee1c694f12a08fa868f93587532c031a7b59b (diff)
downloadgmap_arcgis_js-5337aa48888f7e2f6792a4309315ab1e4256d8b7.tar.gz
gmap_arcgis_js-5337aa48888f7e2f6792a4309315ab1e4256d8b7.tar.bz2
Check if slider plugins are available
-rw-r--r--gmap_arcgis.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 4cd0fab..2fda599 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -566,7 +566,7 @@ function gmapArcgis(config) {
var max = (self.config.sliders[slider].max != undefined) ? self.config.sliders[slider].max : 1;
var step = (self.config.sliders[slider].step != undefined) ? self.config.sliders[slider].step : 1;
- if (type == 'selectToUISlider') {
+ if (type == 'selectToUISlider' && jQuery.selectToUISlider) {
jQuery(element).selectToUISlider({
sliderOptions: {
slide: function(event, ui) {
@@ -575,7 +575,7 @@ function gmapArcgis(config) {
}
}).hide();
}
- else {
+ else if (jQuery.slider) {
// Max is the number of layers in the service
jQuery(element).slider({
value: value,