From 18b03e034e1d542fbc5de563396933b0901e4840 Mon Sep 17 00:00:00 2001
From: Ubuntu9_10 <michael@server1.map.cat>
Date: Tue, 8 Mar 2011 14:38:48 +0100
Subject: [PATCH] Popup for 7.x

---
 includes/behaviors/js/openlayers_behavior_popup.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/includes/behaviors/js/openlayers_behavior_popup.js b/includes/behaviors/js/openlayers_behavior_popup.js
index a935bbc..b257a69 100644
--- a/includes/behaviors/js/openlayers_behavior_popup.js
+++ b/includes/behaviors/js/openlayers_behavior_popup.js
@@ -35,7 +35,8 @@ Drupal.theme.prototype.openlayersPopup = function(feature) {
 /**
  * OpenLayers Popup Behavior
  */
-Drupal.behaviors.openlayers_behavior_popup = function(context) {
+Drupal.behaviors.openlayers_behavior_popup =  {
+  attach: function(context) {
   var layers, data = $(context).data('openlayers');
   if (data && data.map.behaviors['openlayers_behavior_popup']) {
     var map = data.openlayers;
@@ -92,5 +93,6 @@ Drupal.behaviors.openlayers_behavior_popup = function(context) {
     popupSelect.activate();
     Drupal.openlayers.popup.popupSelect = popupSelect;
   }
+  }
 }
 })(jQuery);
-- 
1.7.4.1

