修改以前的垃圾代码
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
function checkModelKey(field, modelId){
|
||||
var host = document.domain;
|
||||
if(host.indexOf('localhost')>=0){
|
||||
host = 'http://localhost:17210/bat-wkflow';
|
||||
}else{
|
||||
host = '/bat-wkflow';
|
||||
}
|
||||
var msg = '';
|
||||
jQuery.ajax({
|
||||
url:host + '/check_define_key',
|
||||
data:{modelId:modelId, key: field },
|
||||
async:false,
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
msg = data.result;
|
||||
}
|
||||
})
|
||||
return msg;
|
||||
}
|
||||
Reference in New Issue
Block a user