[Mapbender-commits] r4887 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Oct 30 07:33:50 EDT 2009
Author: christoph
Date: 2009-10-30 07:33:50 -0400 (Fri, 30 Oct 2009)
New Revision: 4887
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
Modified: trunk/mapbender/http/javascripts/map.php
===================================================================
--- trunk/mapbender/http/javascripts/map.php 2009-10-30 11:32:51 UTC (rev 4886)
+++ trunk/mapbender/http/javascripts/map.php 2009-10-30 11:33:50 UTC (rev 4887)
@@ -77,7 +77,8 @@
$extPath = dirname(__FILE__) . "/../extensions/";
$extFileArray = array( "jquery-1.3.2.min.js",
"jqjson.js",
- "jquery.form.js");
+ "jquery.form.js"
+ );
for ($i = 0; $i < count($extFileArray); $i++) {
$currentFile = $extPath . $extFileArray[$i];
@@ -223,13 +224,13 @@
// Create the jQuery plugin in output buffer
//
ob_start();
- echo "var options = " . $elementAttributes . ";";
+ echo "var options = " . $elementAttributes . ";\n";
// extend the options variable by JS element vars
include "../include/dyn_js_object.php";
- echo "$.fn.$e_id = function (options) {" .
- "return this.each(function () {";
+ echo "\n$.fn.$e_id = function (options) {\n" .
+ "\treturn this.each(function () {\n\n";
$jsArray = explode(",", $jsFileString);
for ($i = 0; $i < count($jsArray); $i++) {
@@ -244,9 +245,9 @@
require($currentFile);
}
- echo "});};";
+ echo "\n\t});\n};\n\n";
- echo "$('#$e_id').$e_id(options);";
+ echo "$('#$e_id').$e_id(options);\n";
$executeJsPluginsArray[] = ob_get_contents();
ob_end_clean();
}
@@ -267,7 +268,7 @@
}
}
-echo "function initModules () {";
+echo "\nfunction initModules () {\n";
echo implode("\n", $executeJsPluginsArray);
echo "}\n";
?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list