[Mapbender-commits] r7516 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 2 11:52:38 EST 2011


Author: astrid_emde
Date: 2011-02-02 08:52:38 -0800 (Wed, 02 Feb 2011)
New Revision: 7516

Modified:
   trunk/mapbender/http/plugins/mb_button.js
Log:
added element var position to position the dialog window

Modified: trunk/mapbender/http/plugins/mb_button.js
===================================================================
--- trunk/mapbender/http/plugins/mb_button.js	2011-02-02 09:54:35 UTC (rev 7515)
+++ trunk/mapbender/http/plugins/mb_button.js	2011-02-02 16:52:38 UTC (rev 7516)
@@ -18,7 +18,11 @@
  * > e_target, e_requires, e_url) VALUES('<appId>','printButton',1,1,'',
  * > 'Print','img','../img/button_blue_red/print_off.png','',NULL ,NULL ,24,24,
  * > NULL ,'','','','../plugins/mb_button.js','','printPDF','','');
- *
+ * >
+ * > INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, 
+ * > context, var_type) VALUES('<appId>', 
+ * > 'printButton', 'position', '[600,100]', '' ,'var');
+ * 
  * Maintainer:
  * http://www.mapbender.org/User:Christoph_Baudson
  *
@@ -34,6 +38,7 @@
 var $button = $(this);
 
 var ButtonApi = function (o) {
+    o.position = o.position || 'center';
 	var that = this;
 	var target = (o.$target && o.$target.jquery && o.$target.size() === 1) ?
 		o.$target : $([]);
@@ -44,7 +49,8 @@
 		top: "auto",
 		left: "auto"
 	}).hide().dialog({
-		autoOpen: false
+		autoOpen: false,
+		position: o.position
 	});
 
 	var openDialog = function () {



More information about the Mapbender_commits mailing list