From b193cdd691b69fa72ebb6f06b5ae2ace6351e86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 4 Jun 2020 16:57:44 +0800 Subject: [PATCH] fix --- js/trippest/trippest.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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",