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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 7 08:08:00 PDT 2015


Author: syed
Date: 2015-07-07 08:08:00 -0700 (Tue, 07 Jul 2015)
New Revision: 9242

Modified:
   trunk/mapbender/http/plugins/kmlTree.js
Log:
change row background-color in the publish-wmc table if the data belongs to the current user

Modified: trunk/mapbender/http/plugins/kmlTree.js
===================================================================
--- trunk/mapbender/http/plugins/kmlTree.js	2015-07-07 14:35:11 UTC (rev 9241)
+++ trunk/mapbender/http/plugins/kmlTree.js	2015-07-07 15:08:00 UTC (rev 9242)
@@ -545,6 +545,12 @@
 					//         }
 					//     });
 					// });
+					var allRows = $('#kml-from-wmc').find('tr');
+					$.each(allRows, function(index, val) {
+						if ( parseInt($(val).find('td:last').html()) ===  parseInt(Mapbender.userId)) {
+							$(val).css('background-color','rgb(146, 232, 183)');
+						}
+					});
 				}
 			});
 			$('#kml-load-tabs').tabs();



More information about the Mapbender_commits mailing list