Commit 00b17afb by doszhang

dos

parent bceed6f8
...@@ -429,18 +429,6 @@ function drawImage() { ...@@ -429,18 +429,6 @@ function drawImage() {
uploadctx.restore(); uploadctx.restore();
} }
function checkWord(name,callback) {
$.ajax({
url: 'index/checkWord',
type: 'POST', data:{
name:name
},
success: function(resp){
callback(resp.status);
}
})
}
function getManBase64(canvas) { function getManBase64(canvas) {
return canvas.toDataURL('image/png'); return canvas.toDataURL('image/png');
} }
...@@ -546,15 +534,7 @@ function checkWord(name,callback) { ...@@ -546,15 +534,7 @@ function checkWord(name,callback) {
name:name name:name
}, },
success: function(resp){ success: function(resp){
if(resp.status == 1) callback(resp.status);
{
callback();
}
else
{
$('#notification_area').remove();
my_notify(resp.msg);
}
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment