Commit 18c6833f by Dányi Bence

webui: whitespace fix

parent c1d5211f
...@@ -14,17 +14,17 @@ $(function() { ...@@ -14,17 +14,17 @@ $(function() {
e.stopPropagation(); e.stopPropagation();
delete_template_confirm($(this).data('id'), $(this).data('name')); delete_template_confirm($(this).data('id'), $(this).data('name'));
}); });
$('.delete-key-button').click(function(e){ $('.delete-key-button').click(function(e) {
var id=$(this).data('id'); var id = $(this).data('id');
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
vm_confirm_popup(gettext('Are you sure deleting key?'), gettext('Delete'), function(){ vm_confirm_popup(gettext('Are you sure deleting key?'), gettext('Delete'), function() {
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'data': 'id='+id, 'data': 'id=' + id,
'url': '/ajax/key/delete/', 'url': '/ajax/key/delete/',
'success': function(){ 'success': function() {
$('#key-'+id).slideUp(700); $('#key-' + id).slideUp(700);
} }
}); });
}); });
...@@ -41,19 +41,19 @@ $(function() { ...@@ -41,19 +41,19 @@ $(function() {
e.stopPropagation(); e.stopPropagation();
}); });
} }
$('.rename-vm').click(function(e){ $('.rename-vm').click(function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var id=$(this).data('id'); var id = $(this).data('id');
var oldName=$(this).data('name'); var oldName = $(this).data('name');
$('#vm-'+id+'-name-details').hide(); $('#vm-' + id + '-name-details').hide();
$('#vm-'+id+'-name').html('<input type="text" value="'+name+'" />\ $('#vm-' + id + '-name').html('<input type="text" value="' + name + '" />\
<input type="submit" value="'+gettext('Rename')+'" />'); <input type="submit" value="' + gettext('Rename') + '" />');
$('#vm-'+id+'-name').find('input[type="text"]').click(function(f){ $('#vm-' + id + '-name').find('input[type="text"]').click(function(f) {
f.preventDefault(); f.preventDefault();
f.stopPropagation(); f.stopPropagation();
}).focus(); }).focus();
$('#vm-'+id+'-name').find('input[type=submit]').click(function(f){ $('#vm-' + id + '-name').find('input[type=submit]').click(function(f) {
f.preventDefault(); f.preventDefault();
f.stopPropagation(); f.stopPropagation();
alert($(this).prev().val()); alert($(this).prev().val());
......
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