feat: init; from commit c3adcb2e6bc94b46f4f34c03bc62abcce6c7e1a0 of BDContract
This commit is contained in:
27
js/codeManage/contractAuthManage.js
Normal file
27
js/codeManage/contractAuthManage.js
Normal file
@@ -0,0 +1,27 @@
|
||||
var updateResultDisplay = function(obj){
|
||||
obj_label = document.getElementById("result");
|
||||
var jsonData = JSON.stringify(obj);// 转成JSON格式
|
||||
// var result = $.parseJSON(jsonData);// 转成JSON对象
|
||||
obj_label.innerHTML = jsonData;
|
||||
};
|
||||
|
||||
var updateResultDisplayStr = function(str){
|
||||
obj_label = document.getElementById("result");
|
||||
obj_label.innerHTML = str;
|
||||
};
|
||||
|
||||
var alertNoPermission = function(message, title) {
|
||||
if ($("#nopermissionSpan").length>0){
|
||||
console.log(message+" status:"+$("#dialog")[0].getAttribute("class"));
|
||||
$("#nopermissionSpan").append("<br/>"+message);
|
||||
} else {
|
||||
var body = "<div class='row'><div class='col-sm-12'><span id='nopermissionSpan'>";
|
||||
body +=message;
|
||||
body += "</span></div></div>";
|
||||
$("#dialogBodyDiv").html(body);
|
||||
showDialog("提示",function(){
|
||||
$("#dialogBodyDiv").html("");
|
||||
});
|
||||
}
|
||||
return;
|
||||
};
|
||||
Reference in New Issue
Block a user