[Mapbender-commits] r5194 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Dec 16 04:25:48 EST 2009
Author: kmq
Date: 2009-12-16 04:25:46 -0500 (Wed, 16 Dec 2009)
New Revision: 5194
Modified:
trunk/mapbender/http/plugins/mb_resultList_SelectAll.js
Log:
selectAll now doesn't just invert selections
Modified: trunk/mapbender/http/plugins/mb_resultList_SelectAll.js
===================================================================
--- trunk/mapbender/http/plugins/mb_resultList_SelectAll.js 2009-12-16 09:10:01 UTC (rev 5193)
+++ trunk/mapbender/http/plugins/mb_resultList_SelectAll.js 2009-12-16 09:25:46 UTC (rev 5194)
@@ -1,16 +1,17 @@
+allSelected = false;
-
var ResultListSelectAll = function(data) {
-// $("#"+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')){
+ if(allSelected){
$(tr_rows[trindex]).removeClass('row_selected');
}
else{
$(tr_rows[trindex]).addClass('row_selected');
}
}
+ allSelected = allSelected ? false: true;
};
Mapbender.modules[options.target].addGlobalButton({"title": "alle/keine auswählen", "callback": ResultListSelectAll});
More information about the Mapbender_commits
mailing list