# HG changeset patch
# User fknauft
# Date 1296574713 -3600
# Node ID a0838591e83f9c231717694202e120d02d21060a
# Parent 7ed1d9c6122ee7030ee5dc4e12326fa92a6f128a
changable color for dots in map
diff -r 7ed1d9c6122e -r a0838591e83f gis_gui/blocks/layer.js
--- 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('');
- 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('');
+ // 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('');