[Mapbender-commits] r5840 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 26 07:25:20 EDT 2010


Author: christoph
Date: 2010-03-26 07:25:19 -0400 (Fri, 26 Mar 2010)
New Revision: 5840

Modified:
   trunk/mapbender/lib/button.js
Log:
added stop function for button object

Modified: trunk/mapbender/lib/button.js
===================================================================
--- trunk/mapbender/lib/button.js	2010-03-26 11:21:34 UTC (rev 5839)
+++ trunk/mapbender/lib/button.js	2010-03-26 11:25:19 UTC (rev 5840)
@@ -31,7 +31,11 @@
 
 
 Mapbender.Button = function (options) {
-	mb_regButton(options);
+	this.stop = function () {
+		mb_disableThisButton(button.elName);
+	};
+
+	var button = mb_regButton(options);
 };
  
 var mb_button = [];
@@ -102,10 +106,11 @@
 	else {
 		mb_button[ind].frameName = frameName;
 	}
+	return mb_button[ind];
 }
 
 function mb_regButton(wii){
-	mb_regButton_frame(wii, null, null);
+	return mb_regButton_frame(wii, null, null);
 }
 
 function mb_conButton(wii, ind){



More information about the Mapbender_commits mailing list