[Mapbender-commits] r7563 - in trunk/mapbender: http/html
http/javascripts http/plugins lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Feb 11 07:19:50 EST 2011
Author: armin11
Date: 2011-02-11 04:19:49 -0800 (Fri, 11 Feb 2011)
New Revision: 7563
Modified:
trunk/mapbender/http/html/mod_treefolderPlain.php
trunk/mapbender/http/javascripts/map_obj.js
trunk/mapbender/http/javascripts/mod_loadwmc.js
trunk/mapbender/http/javascripts/mod_tab.js
trunk/mapbender/http/javascripts/mod_tooltip.php
trunk/mapbender/http/plugins/mb_i18n.js
trunk/mapbender/lib/button.js
Log:
Fix of very big performance problems with sync of different ajax calls! Reduce the loading time of mapbender 2.7 to 30% - nearly the time it needs before.
Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php 2011-02-11 12:19:49 UTC (rev 7563)
@@ -89,16 +89,18 @@
});
req.send();
}
-
+/*
eventInit.register(function () {
localizeTree();
});
+*/
-eventLocalize.register(function () {
- localizeTree();
-});
+if (localizeTree == 1) {
+ eventLocalize.register(function () {
+ localizeTree();
+ });
+}
-
var jst_container = "document.getElementById('treeContainer')";
var jst_image_folder = imagedir;
var jst_display_root = false;
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/javascripts/map_obj.js 2011-02-11 12:19:49 UTC (rev 7563)
@@ -41,9 +41,9 @@
localizeMap();
});
- eventInit.register(function(){
+/* eventInit.register(function(){
localizeMap();
- });
+ });*/
var localizeMap = function(){
$.post("../php/mod_map_messages.php", {
Modified: trunk/mapbender/http/javascripts/mod_loadwmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-02-11 12:19:49 UTC (rev 7563)
@@ -67,7 +67,7 @@
var translatedI18nObject = Mapbender.cloneObject(originalI18nObject);
-if(Mapbender.modules.i18n){
+/*if(Mapbender.modules.i18n){
Mapbender.modules.i18n.queue(options.id, originalI18nObject, function (translatedObject) {
if (typeof translatedObject !== "object") {
return;
@@ -75,7 +75,7 @@
translatedI18nObject = translatedObject;
});
Mapbender.modules.i18n.localize(Mapbender.languageId);
-}
+}*/
var $loadWmc = $(this);
Modified: trunk/mapbender/http/javascripts/mod_tab.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_tab.js 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/javascripts/mod_tab.js 2011-02-11 12:19:49 UTC (rev 7563)
@@ -21,7 +21,7 @@
eventInit.register(function () {
tab_init();
- localizeTabs();
+// localizeTabs();
});
Modified: trunk/mapbender/http/javascripts/mod_tooltip.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_tooltip.php 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/javascripts/mod_tooltip.php 2011-02-11 12:19:49 UTC (rev 7563)
@@ -93,7 +93,7 @@
});
}
-eventInit.register(mod_tooltipInit);
+eventInit.register(mod_tooltipInit); //initialize tooltips!
function mod_tooltip_run(point){
mouseMoves++;
@@ -428,4 +428,4 @@
resultHighlight.paint();
}
return true;
-}
\ No newline at end of file
+}
Modified: trunk/mapbender/http/plugins/mb_i18n.js
===================================================================
--- trunk/mapbender/http/plugins/mb_i18n.js 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/http/plugins/mb_i18n.js 2011-02-11 12:19:49 UTC (rev 7563)
@@ -76,7 +76,7 @@
}
}
translationObj = {};
- Mapbender.events.localize.trigger();
+ //Mapbender.events.localize.trigger();
}
});
req.send();
Modified: trunk/mapbender/lib/button.js
===================================================================
--- trunk/mapbender/lib/button.js 2011-02-11 10:21:30 UTC (rev 7562)
+++ trunk/mapbender/lib/button.js 2011-02-11 12:19:49 UTC (rev 7563)
@@ -226,7 +226,7 @@
mb_localizeButtons();
});
-Mapbender.events.init.register(function () {
+/*Mapbender.events.init.register(function () {
mb_localizeButtons();
-});
+});*/
More information about the Mapbender_commits
mailing list