|
@@ -492,12 +492,19 @@ $(document).ready(function(){
|
|
|
checked_id = checked_id.substring(0, checked_id.length-1);
|
|
|
}
|
|
|
var zone_url = ctx+"/advertiser/main/ad/target/operator-ad-group/zonelist";
|
|
|
- $.post( zone_url, {"position":checked_id}, function(data){
|
|
|
+ var param = "";
|
|
|
+ if($(".edit_zonechooseDiv").html()){
|
|
|
+ param = {"position":checked_id,adgroupId:$("#adGroupId").val()};
|
|
|
+ }else{
|
|
|
+ param = {"position":checked_id};
|
|
|
+ }
|
|
|
+ $.post( zone_url, param, function(data){
|
|
|
$.each( data, function( key, val ) {
|
|
|
$("#zone-chooseingUl").append("<li value="+val.id+" title="+val.name+"><label>"+val.name+"</label></li>");
|
|
|
});
|
|
|
});
|
|
|
if($(".edit_zonechooseDiv").html()){
|
|
|
+
|
|
|
$("#zone-selectedUl").append($("#edit_zonechoose").html());
|
|
|
}
|
|
|
})
|