| | |
| | | data: JSON.stringify(data), |
| | | contentType: "application/json", |
| | | success: function (response) { |
| | | if (response === 500){ |
| | | if (!response){ |
| | | Feng.error("所选视频已经存在于当前福利视频分类下!"); |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.close(); |
| | | |
| | | }else{ |
| | | Feng.success("添加成功"); |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.close(); |
| | | } |
| | | }, |
| | | error: function (xhr, status, error) { |
| | |
| | | data: JSON.stringify(data), |
| | | contentType: "application/json", |
| | | success: function (response) { |
| | | Feng.success("添加成功"); |
| | | if (!response){ |
| | | Feng.error("所选视频已经存在于当前福利视频分类下!"); |
| | | }else{ |
| | | Feng.success("编辑成功"); |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.close(); |
| | | } |
| | | }, |
| | | error: function (xhr, status, error) { |
| | | Feng.error("添加失败!" + error); |