|
@@ -11,6 +11,7 @@ $(document).ready(function(){
|
|
|
operatorIds.push(id);
|
|
|
});
|
|
|
parent.$("#input_selectOperator").val(operatorIds);//父层的元素
|
|
|
+ parent.$("#selectOperator_span").text("已选择"+ checkboxs.length +"个媒体");
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
parent.layer.close(index);//再执行关闭
|
|
|
});
|
|
@@ -37,42 +38,27 @@ $(document).ready(function(){
|
|
|
$(".selectOperatorPlace_save").click(function(){
|
|
|
var checkboxs = $("#selectOperatorPlaceDiv input[type='checkbox']:checked");
|
|
|
var placeId = "a";
|
|
|
- var tempId = "a";
|
|
|
var placeName= "";
|
|
|
if(checkboxs.length > 0){
|
|
|
checkboxs.each(function(){
|
|
|
var id = parseInt($(this).val());
|
|
|
- if(placeId.indexOf($(this).attr("placeIdValue")) == -1){
|
|
|
- placeId += ","+$(this).attr("placeIdValue");
|
|
|
- }
|
|
|
+ placeId += ","+id;
|
|
|
placeName += $(this).attr("title")+",";
|
|
|
- tempId += ","+id;
|
|
|
});
|
|
|
parent.$("#btn-selectPlace").addClass("aChange");
|
|
|
parent.$("#btn-selectPlaceClass").addClass("aChange");
|
|
|
}else{
|
|
|
- placeId = "";tempId = "";
|
|
|
+ placeId = "";
|
|
|
parent.$("#btn-selectPlace").removeClass("aChange");
|
|
|
parent.$("#btn-selectPlaceClass").removeClass("aChange");
|
|
|
}
|
|
|
- parent.$("#selectId").val(tempId);//父层的元素
|
|
|
parent.$("#selectPlaceId").val(placeId);//父层的元素
|
|
|
parent.$("#selectPlaceName").val(placeName);//父层的元素
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
parent.layer.close(index);//再执行关闭
|
|
|
});
|
|
|
|
|
|
- $("#selectOperatorPlaceDiv input[type='checkbox']").each(function(){
|
|
|
- var obj = $(this);
|
|
|
- var ids = parent.$("#selectId").val().split(",");
|
|
|
- for(var i = 1,l=ids.length;i<l;i++){
|
|
|
- if(obj.val() == ids[i]){
|
|
|
- obj.attr('checked',true);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- $("#selectPlaceDiv input[type='checkbox'],#selectPlaceClassDiv input[type='checkbox']").each(function(){
|
|
|
+ $("#selectOperatorPlaceDiv input[type='checkbox'],#selectPlaceDiv input[type='checkbox'],#selectPlaceClassDiv input[type='checkbox']").each(function(){
|
|
|
var obj = $(this);
|
|
|
var ids = parent.$("#selectPlaceId").val().split(",");
|
|
|
for(var i = 1,l=ids.length;i<l;i++){
|