summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-11-14 20:54:06 -0500
committerMitch Jackson <mitch@freeside.biz>2018-11-14 21:30:15 -0500
commit96077ef6ef66cf65bb47eb78158fb89b65a3af0c (patch)
tree370cca6c0d78373aef5cd0690568d2d6375a8482 /httemplate
parentcbaaf7761d53743db699d046500bf4013e021e79 (diff)
RT# 81706 jQuery upgrade - bind() deprecated for on()
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/jquery-gmaps-latlon-picker.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/elements/jquery-gmaps-latlon-picker.js b/httemplate/elements/jquery-gmaps-latlon-picker.js
index b839df7..1a8b62e 100644
--- a/httemplate/elements/jquery-gmaps-latlon-picker.js
+++ b/httemplate/elements/jquery-gmaps-latlon-picker.js
@@ -201,7 +201,7 @@ $.fn.gMapsLatLonPicker = (function() {
});
// Update location and zoom values based on input field's value
- $(_self.vars.cssID + ".gllpUpdateButton").bind("click", function() {
+ $(_self.vars.cssID + ".gllpUpdateButton").on("click", function() {
var lat = $(_self.vars.cssID + ".gllpLatitude").val();
var lng = $(_self.vars.cssID + ".gllpLongitude").val();
var latlng = new google.maps.LatLng(lat, lng);
@@ -210,17 +210,17 @@ $.fn.gMapsLatLonPicker = (function() {
});
// Search function by search button
- $(_self.vars.cssID + ".gllpSearchButton").bind("click", function() {
+ $(_self.vars.cssID + ".gllpSearchButton").on("click", function() {
performSearch( $(_self.vars.cssID + ".gllpSearchField").val(), false );
});
// Search function by gllp_perform_search listener
- $(document).bind("gllp_perform_search", function(event, object) {
+ $(document).on("gllp_perform_search", function(event, object) {
performSearch( $(object).attr('string'), true );
});
// Zoom function triggered by gllp_perform_zoom listener
- $(document).bind("gllp_update_fields", function(event) {
+ $(document).on("gllp_update_fields", function(event) {
var lat = $(_self.vars.cssID + ".gllpLatitude").val();
var lng = $(_self.vars.cssID + ".gllpLongitude").val();
var latlng = new google.maps.LatLng(lat, lng);
@@ -249,6 +249,6 @@ $(document).ready( function() {
});
});
-$(document).bind("location_changed", function(event, object) {
+$(document).on("location_changed", function(event, object) {
console.log("changed: " + $(object).attr('id') );
});