[Mapbender-commits] r5191 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Dec 15 11:38:12 EST 2009
Author: kmq
Date: 2009-12-15 11:38:11 -0500 (Tue, 15 Dec 2009)
New Revision: 5191
Modified:
trunk/mapbender/http/plugins/mb_resultList_SelectAll.js
Log:
really select all, even undisplayed entries
Modified: trunk/mapbender/http/plugins/mb_resultList_SelectAll.js
===================================================================
--- trunk/mapbender/http/plugins/mb_resultList_SelectAll.js 2009-12-15 10:47:56 UTC (rev 5190)
+++ trunk/mapbender/http/plugins/mb_resultList_SelectAll.js 2009-12-15 16:38:11 UTC (rev 5191)
@@ -1,7 +1,16 @@
var ResultListSelectAll = function(data) {
- $("#"+options.target+"_table tr").addClass("row_selected");
+// $("#"+options.target+"_table tr").addClass("row_selected");
+ var tr_rows = data.table.fnGetNodes();
+ for(trindex in tr_rows) {
+ if($(tr_rows[trindex]).hasClass('row_selected')){
+ $(tr_rows[trindex]).removeClass('row_selected');
+ }
+ else{
+ $(tr_rows[trindex]).addClass('row_selected');
+ }
+ }
};
-Mapbender.modules[options.target].addGlobalButton({"title":"Alle selektieren", "callback": ResultListSelectAll});
+Mapbender.modules[options.target].addGlobalButton({"title": "alle/keine auswählen", "callback": ResultListSelectAll});
More information about the Mapbender_commits
mailing list