|
@@ -27,7 +27,7 @@ $(document).ready(function(){
|
|
});
|
|
});
|
|
|
|
|
|
//类型
|
|
//类型
|
|
- if($("#device").val() == 0 || $("#device").val() == ""){
|
|
|
|
|
|
+ if($("#device").val() == -1 || $("#device").val() == ""){
|
|
$("#selectBar_type a:first").addClass("selectBar_change");
|
|
$("#selectBar_type a:first").addClass("selectBar_change");
|
|
}
|
|
}
|
|
$("#selectBar_type a").each(function(){
|
|
$("#selectBar_type a").each(function(){
|
|
@@ -42,7 +42,7 @@ $(document).ready(function(){
|
|
});
|
|
});
|
|
|
|
|
|
//获取创意尺寸
|
|
//获取创意尺寸
|
|
- if($("#position").val() == 0 || $("#position").val() == ""){
|
|
|
|
|
|
+ if($("#position").val() == -1 || $("#position").val() == ""){
|
|
$("#selectBar_position a:first").addClass("selectBar_change");
|
|
$("#selectBar_position a:first").addClass("selectBar_change");
|
|
}
|
|
}
|
|
$("#selectBar_position a").each(function(){
|
|
$("#selectBar_position a").each(function(){
|
|
@@ -378,7 +378,7 @@ function getUploadFile(){
|
|
var orgImg = path.substring(0,path.indexOf(","));
|
|
var orgImg = path.substring(0,path.indexOf(","));
|
|
var smallImg = path.substring(path.indexOf(",")+1);
|
|
var smallImg = path.substring(path.indexOf(",")+1);
|
|
$("#uploadfilehidden").val(orgImg);
|
|
$("#uploadfilehidden").val(orgImg);
|
|
- $("#smallImg").val(smallImg);
|
|
|
|
|
|
+ $("#smallImg").attr("src",smallImg);
|
|
$("#default_path_small").val(smallImg);
|
|
$("#default_path_small").val(smallImg);
|
|
$("#imgDivs").css("display","block");
|
|
$("#imgDivs").css("display","block");
|
|
var result = 0;
|
|
var result = 0;
|
|
@@ -386,7 +386,7 @@ function getUploadFile(){
|
|
bootbox.alert("上传成功!");
|
|
bootbox.alert("上传成功!");
|
|
}else if (result.status == 'error') {
|
|
}else if (result.status == 'error') {
|
|
$("#uploadfilehidden").val("");
|
|
$("#uploadfilehidden").val("");
|
|
- $("#smallImg").val("");
|
|
|
|
|
|
+ $("#smallImg").attr("src","");
|
|
$("#default_path_small").val("");
|
|
$("#default_path_small").val("");
|
|
$("#imgDivs").css("display","none");
|
|
$("#imgDivs").css("display","none");
|
|
bootbox.alert(result.msg);
|
|
bootbox.alert(result.msg);
|
|
@@ -395,7 +395,7 @@ function getUploadFile(){
|
|
error: function (data, status, e)
|
|
error: function (data, status, e)
|
|
{
|
|
{
|
|
$("#uploadfilehidden").val("");
|
|
$("#uploadfilehidden").val("");
|
|
- $("#smallImg").val("");
|
|
|
|
|
|
+ $("#smallImg").attr("src","");
|
|
$("#default_path_small").val("");
|
|
$("#default_path_small").val("");
|
|
$("#imgDivs").css("display","none");
|
|
$("#imgDivs").css("display","none");
|
|
removeFile("uploadfile","filepicture_picture","uploadfilehidden");
|
|
removeFile("uploadfile","filepicture_picture","uploadfilehidden");
|