Commit bdb49d44 by Karsa Zoltán István

bugfix

parent 8a65e8d0
var Websock_native; // not sure var Websock_native; // not sure
$(function() { $(function() {
if ($("#ace-meta-data").length && $("#ace-user-data").length) {
var meta_data = ace.edit('ace-meta-data', { var meta_data = ace.edit('ace-meta-data', {
mode: "ace/mode/yaml", useWorker: false, mode: "ace/mode/yaml", useWorker: false,
selectionStyle: "text" }); selectionStyle: "text" });
...@@ -26,7 +26,6 @@ $(function() { ...@@ -26,7 +26,6 @@ $(function() {
document.getElementById('ace-user-data').style.fontSize='14px'; document.getElementById('ace-user-data').style.fontSize='14px';
/* */ /* */
$('#vm-details-cidata-save').click(function(e) { $('#vm-details-cidata-save').click(function(e) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: $(this).parents("form").prop('action'), url: $(this).parents("form").prop('action'),
...@@ -48,9 +47,9 @@ $(function() { ...@@ -48,9 +47,9 @@ $(function() {
} }
} }
}); });
e.preventDefault() e.preventDefault()
}) })
}
/* save resources */ /* save resources */
$('#vm-details-resources-save').click(function(e) { $('#vm-details-resources-save').click(function(e) {
var error = false; var error = false;
......
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