Skip to content
Snippets Groups Projects
Commit 143426c2 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

JSLint run.

parent 5b768d2a
No related branches found
No related tags found
No related merge requests found
/* $Id$ */ /* $Id$ */
//////////////////////////////////////// /**
// Map ID widget // * @file
//////////////////////////////////////// * Map ID widget for macro form.
Drupal.gmap.addHandler('mapid', function(elem) { */
/*global $, Drupal */
Drupal.gmap.addHandler('mapid', function (elem) {
var obj = this; var obj = this;
// Respond to incoming map id changes. // Respond to incoming map id changes.
var binding = obj.bind("idchange",function(){ var binding = obj.bind("idchange", function () {
elem.value = obj.vars.macro_mapid; elem.value = obj.vars.macro_mapid;
}); });
// Send out outgoing map id changes. // Send out outgoing map id changes.
$(elem).change(function() { $(elem).change(function () {
obj.vars.macro_mapid = elem.value; obj.vars.macro_mapid = elem.value;
obj.change("idchange",binding); obj.change("idchange", binding);
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment