Commit 68a128a5 by Kálmán Viktor

dashboard: minor js fixes for description and name edit

parent b743536b
...@@ -183,6 +183,7 @@ $(function() { ...@@ -183,6 +183,7 @@ $(function() {
$("#vm-details-h1-name").hide(); $("#vm-details-h1-name").hide();
$("#vm-details-rename").css('display', 'inline'); $("#vm-details-rename").css('display', 'inline');
$("#vm-details-rename-name").focus(); $("#vm-details-rename-name").focus();
return false;
}); });
/* rename in home tab */ /* rename in home tab */
...@@ -190,6 +191,7 @@ $(function() { ...@@ -190,6 +191,7 @@ $(function() {
$(".vm-details-home-edit-name-click").hide(); $(".vm-details-home-edit-name-click").hide();
$("#vm-details-home-rename").show(); $("#vm-details-home-rename").show();
$("input", $("#vm-details-home-rename")).focus(); $("input", $("#vm-details-home-rename")).focus();
return false;
}); });
/* rename ajax */ /* rename ajax */
...@@ -219,6 +221,11 @@ $(function() { ...@@ -219,6 +221,11 @@ $(function() {
$(".vm-details-home-edit-description-click").click(function() { $(".vm-details-home-edit-description-click").click(function() {
$(".vm-details-home-edit-description-click").hide(); $(".vm-details-home-edit-description-click").hide();
$("#vm-details-home-description").show(); $("#vm-details-home-description").show();
var ta = $("#vm-details-home-description textarea");
var tmp = ta.val();
ta.val("");
ta.focus();
ta.val(tmp)
return false; return 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