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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 25 09:28:18 EST 2010


Author: kmq
Date: 2010-02-25 09:28:18 -0500 (Thu, 25 Feb 2010)
New Revision: 5674

Modified:
   trunk/mapbender/http/plugins/jq_upload.js
Log:
make width of jq_upload configurable

Modified: trunk/mapbender/http/plugins/jq_upload.js
===================================================================
--- trunk/mapbender/http/plugins/jq_upload.js	2010-02-25 13:34:24 UTC (rev 5673)
+++ trunk/mapbender/http/plugins/jq_upload.js	2010-02-25 14:28:18 UTC (rev 5674)
@@ -11,6 +11,7 @@
 		// we want the default to be true, and we want the user to be able to write {displaySubmit: false}
 		var displaySubmit = options.displaySubmit? true : false;
 		var url = options.url || "../plugins/jq_upload.php";
+		var width = options.width || 30;
 
 		var startUpload = function () {
 			var t = setInterval(function () {
@@ -67,7 +68,7 @@
 		});
 		$form.append($(
 			"<p id=" + id + "'_form' align='center'><br/>" + 
-				"<input name='myfile' type='file' size='30' />" + 
+				"<input name='myfile' type='file' size='"+width+"' />" + 
 
 				(displaySubmit ? "<input type='submit' value='Upload' />": "") + 
 



More information about the Mapbender_commits mailing list