PageSourceSearch

https://bcguestranches.com/wp-content/plugins/wp-google-maps-pro/j…/pro-map-list-page.js?ver=9.0.44+pro-9.0.33

js bcguestranches.com collected 2026-10-05 22:25:03 UTC 1,279 bytes, 55 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module ProMapListPage
4 * @requires WPGMZA.MapListPage
5 */
6jQuery(function($) {
7	
8	WPGMZA.ProMapListPage = function()
9	{
10		var self = this;
11		
12		WPGMZA.MapListPage.apply(this, arguments);
13		
14		$("[data-action='new-map']").on("click", function(event) {
15			self.onNewMap(event);
16		});
17		
18		$("[data-action='wizard']").on("click", function(event) {
19			self.onWizard(event);
20		});
21	}
22	
23	WPGMZA.extend(WPGMZA.ProMapListPage, WPGMZA.MapListPage);
24	
25	WPGMZA.MapListPage.createInstance = function()
26	{
27		return new WPGMZA.ProMapListPage();
28	}
29	
30	WPGMZA.ProMapListPage.prototype.onNewMap = function(event)
31	{
32		$(event.target).prop("disabled", "true");
33		
34		WPGMZA.restAPI.call("/maps/", {
35			method: "POST",
36			data: {
37				map_title:		WPGMZA.localized_strings.new_map,
38				map_start_lat:	36.778261,
39				map_start_lng:	-119.4179323999,
40				map_start_zoom: 3
41			},
42			success: function(response, status, xhr) {
43				
44				window.location.href = window.location.href = "admin.php?page=wp-google-maps-menu&action=edit&map_id=" + response.id;
45				
46			}
47		});
48	}
49	
50	WPGMZA.ProMapListPage.prototype.onWizard = function(event)
51	{
52		window.location.href = "admin.php?page=wp-google-maps-menu&action=wizard";
53	}
54	
55});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.