diff --git a/js/trippest/trippest.js b/js/trippest/trippest.js index 44231a57..15e03880 100644 --- a/js/trippest/trippest.js +++ b/js/trippest/trippest.js @@ -43,6 +43,16 @@ function tpmeta(meta_act, ibd_id, ibd_Itemvalue = "", ibd_ItemType = "", ibd_Ite function addmeta(ibd_ic_id,ibd_parentId=0,ibd_ItemName,ibd_Itemvalue="",ibd_ItemType="",ibd_ItemDescription="") { var url = "/info.php/infobokundata/add_meta"; + if (ibd_ItemName=="" || typeof(ibd_ItemName) == undefined){ + $.modaldialog.error("更新失败,属性名称必须选择!") + return false; + } + if (ibd_Itemvalue=="" || typeof(ibd_Itemvalue) == undefined){ + $.modaldialog.error("更新失败,属性值必须填写!") + return false; + } + + $.ajax({ type: "post", dataType: "json",