[Mapbender-commits] r9248 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jul 13 05:43:57 PDT 2015
Author: armin11
Date: 2015-07-13 05:43:56 -0700 (Mon, 13 Jul 2015)
New Revision: 9248
Modified:
trunk/mapbender/http/plugins/kmlTree.php
Log:
Handle new visualization - drop kmlTree.js
Modified: trunk/mapbender/http/plugins/kmlTree.php
===================================================================
--- trunk/mapbender/http/plugins/kmlTree.php 2015-07-13 07:49:34 UTC (rev 9247)
+++ trunk/mapbender/http/plugins/kmlTree.php 2015-07-13 12:43:56 UTC (rev 9248)
@@ -88,7 +88,7 @@
} else {
var dlg = $('<div id="mySpatialData"></div>').dialog({
"title": "<?php echo _mb("My spatial data");?>",
- width: 720,
+ width: 800,
height: 420,
close: function() {
$('#kml-load-tabs').tabs('destroy');
@@ -544,6 +544,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();
@@ -609,6 +615,9 @@
$(dlg).dialog('destroy');
};
$('#kml-from-upload form').bind('submit', function() {
+ if ( $( "#kml-from-upload > form > input[type='file'] " ).val() === "") {
+ return;
+ }
ifr.onload = onloadfun;
});
@@ -768,7 +777,7 @@
var kml = $('#mapframe1').data('kml');
var url = $(this).parent().attr('title');
var ids = [];
- var i = $(this).children().length;;
+ var i = $(this).children().length;
$.each($(this).children(), function(k, v) {
ids.push($(v).attr('idx'));
$(v).attr('idx', --i);
More information about the Mapbender_commits
mailing list