Commit 4d66dbb8 authored by Mike Muzurakis's avatar Mike Muzurakis
Browse files

don't accept blank name on server rename, Refs #307

parent a6804f30
......@@ -85,6 +85,9 @@ $(".rename, h5.editable span.name").live('click', function() {
$(".editbuttons .save").live('click', function() {
serverID = $(this).closest('.machine').attr("id");
serverName = $(this).parent().parent().find('.name').find('.nametextbox').val();
if (serverName.trim() == ''){
return false;
}
$(this).parent().parent().find('.name').html($(this).parent().parent().find('.nametextbox').val());
$(this).parent().parent().find(".editbuttons").fadeOut("fast");
$(this).parent().parent().find(".rename").fadeIn("slow");
......
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 to comment