changeset 102:a0838591e83f

changable color for dots in map
author fknauft
date Tue, 01 Feb 2011 16:38:33 +0100
parents 7ed1d9c6122e
children 06309d0702de
files gis_gui/blocks/layer.js
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js	Tue Feb 01 16:31:17 2011 +0100
+++ b/gis_gui/blocks/layer.js	Tue Feb 01 16:38:33 2011 +0100
@@ -36,14 +36,15 @@
                     } 
                     $(this).find("option").filter(function(){return $(this).text() == params.size_field;}).attr("selected","true");
                 });
-        $(be).find(".layer_color_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
-                function() {
-                    $(this).find("option:first").before('<option>Default</option>');
-                    if (!params.color_field) {
-                        params.color_field = "Default";
-                    } 
-                    $(this).find("option").filter(function(){return $(this).text() == params.color_field;}).attr("selected","true");
-                });
+        $(be).find(".layer_color_select");
+  //      $(be).find(".layer_color_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
+  //              function() {
+  //                  $(this).find("option:first").before('<option>Default</option>');
+  //                  if (!params.color_field) {
+  //                      params.color_field = "Default";
+  //                  } 
+  //                  $(this).find("option").filter(function(){return $(this).text() == params.color_field;}).attr("selected","true");
+  //              });
         $(be).find(".layer_shape_select").load("../db/RESTdb/db/public/"+tablename+"?format=HTML&type=schema_table_rows&layout=select&element_id=rows #rows *",
                 function() {
                     $(this).find("option:first").before('<option>Default</option>');