summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2009-02-11 19:59:45 (GMT)
committer Brandon Bergren2009-02-11 19:59:45 (GMT)
commit143426c2b3cd68f0213103423c0c61537165aad5 (patch)
tree38c7795796214af50389e00bf6482a17b7c1974b
parent5b768d2ac3b6c574dc7bdf73bc6111e04742bebc (diff)
JSLint run.
-rw-r--r--js/macrobuilder.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/js/macrobuilder.js b/js/macrobuilder.js
index 8be83ba..b1052eb 100644
--- a/js/macrobuilder.js
+++ b/js/macrobuilder.js
@@ -1,17 +1,21 @@
/* $Id$ */
-////////////////////////////////////////
-// Map ID widget //
-////////////////////////////////////////
-Drupal.gmap.addHandler('mapid', function(elem) {
+/**
+ * @file
+ * Map ID widget for macro form.
+ */
+
+/*global $, Drupal */
+
+Drupal.gmap.addHandler('mapid', function (elem) {
var obj = this;
// Respond to incoming map id changes.
- var binding = obj.bind("idchange",function(){
+ var binding = obj.bind("idchange", function () {
elem.value = obj.vars.macro_mapid;
});
// Send out outgoing map id changes.
- $(elem).change(function() {
+ $(elem).change(function () {
obj.vars.macro_mapid = elem.value;
- obj.change("idchange",binding);
+ obj.change("idchange", binding);
});
});