+++ /dev/null
-\r
- var ajax_show=true;\r
- if ($("#ppol_form").length > 0)\r
- {\r
- $("#ppol_form").remove();$("#sp_query_container").empty();\r
- }\r
- msie=($.browser.msie==true)?true:false; \r
- if (msie)\r
- {\r
- $('#ppol_win input.jqmdX').css('background','url(http://taxonomicindex.africamuseum.be/edit_wp5/edit_geo/prototype/JQ_win_files/close.gif) no-repeat').css('width','18px');\r
- }\r
- else {\r
-\r
- $('#ppol_win input.jqmdX').css('background','url(http://taxonomicindex.africamuseum.be/edit_wp5/edit_geo/prototype/JQ_win_files/close.gif) no-repeat top left');\r
- }\r
- $('#ppol_win input.jqmdX').hover(function(){$(this).addClass('jqmdXFocus')},function(){$(this).removeClass('jqmdXFocus')}).focus(function(){this.hideFocus=true;$(this).addClass('jqmdXFocus')}).blur(function(){$(this).removeClass('jqmdXFocus')}).click(function(){$('#ppol_win').hide();$("#ppol_form").remove();$("#sp_query_container").empty();});\r
- $('#ppol_win').jqDrag('.jqDrag').jqResize('.jqResize');\r
- $("#ppol_win").show();\r
- var form='<form id="ppol_form"><p>Select the polygon you want to cross your data with <br>and click on the desired polygon on the map</p> <select>';\r
- \r
- //$("#utm_legend input,#admin_legend input").each(function(i,item)\r
- \r
-\r
- $("#layers input:checked").each(function(i,d)\r
- {\r
- \r
- var $this=$(this);\r
- //console.log($this);\r
- \r
- if (d.id !='blank' && d.id !='nasa')\r
- { \r
- p=$("input[id='"+d.id+"']").next().get(0);\r
- label=p.firstChild.nodeValue;\r
- //console.log(label);\r
- \r
- form+="<option id='"+ d.id+"'>"+label+"</option>";\r
- }\r
- });\r
- form+='</select></form><div id="results"/>';\r
-\r
- $("#sp_query_container").append(form);\r
- if ($("#run_analysis").hasClass("clicked"))\r
- {\r
-\r
- extra="<option id='"+d.id+"'>"+label+"</option>";\r
-$("#ppol_form select").append(extra);\r
- }\r
-\r
- $("#ppol_win").fadeIn();\r
- \r
- // x=point[0]; y=point[1];\r
-\r
- \r
-\r
-\r