/*** Created by A.J on 2019/3/9.*/$(document).ready(function(){$("#addprop").on("click",function(){var t=$.trim($(this).prev().val());""!=t&&($("#addpropdiv").html($("#addpropdiv").html()+'<div class="panel panel-default"><div class="panel-body bg-info"><span>'+t+'</span><button type="button" class="close"><span>&times;</span></button></div></div>'),$("#propname").val($("#propname").val()+","+t),$(this).prev().val(""))}),$("#addpropdiv").on("click",".close",function(){var t=$.trim($(this).prev().text()),n=$("#propname").val()+",";n=n.replace(","+t+",",","),$("#propname").val(n.substr(0,n.length-1)),$(this).parent().parent().remove()}),$("#protemp").on("change",function(){""!=$.trim($(this).val())&&$.post("attributetemplatechk",{protemp:$.trim($(this).val()),verification:$("#verification").text()},function(t){"ok"!=t&&$.alert({title:"",content:t,confirmButton:$("#queding").text()})})})});