move new/editvm to ajax, check macaddress not in use already and a few fixes

This commit is contained in:
mad
2018-08-18 13:53:25 +02:00
parent 66e950ea54
commit 3ab4fa63fc
3 changed files with 82 additions and 49 deletions
+2 -2
View File
@@ -48,9 +48,9 @@ $('#confirm-delete').on('show.bs.modal', function(e) {
});
function submitbutton(formid){
//console.log(formid);
console.log(formid);
data = $('#'+ formid).serialize();
//console.log(data);
console.log(data);
$.ajax({
type: 'POST',
url: "?rand="+ makeid(),