anchor.diff:      }    
     }, p.val()); 
   })
  -<% if flag%>
  +<% if params[:action]=="edit"%>
     p.find("option[value=<%=@site.province%>]").attr("selected",true).trigger("change");
     c.find("option[value=<%=@site.city%>]").attr("selected",true);
   <% end %>
  
positive.code: $(document).ready(function(){
  $().CitySelector();
  map = new BMap.Map("allmap");
  map.centerAndZoom(new BMap.Point(<%= flag && !@site.location.blank? ? @site.location : "116.404, 39.915" %>), 16);
  map.enableScrollWheelZoom(true);
  map.addEventListener("dragend",set_marker);
  set_marker();
  
negative.code:                 <span class="icon">
                    <i class="glyphicon glyphicon-align-justify"></i>                 
                  </span>
                  <h5><%= params[:action]=="edit" ? "编辑" : "新建" %>网点</h5>
                </div>
                <div class="widget-content nopadding">
                  <%= form_for @site,:html=>{:class=>"form-horizontal"} do |f| %>
  