Clear the mount point value for the new mount point row

This commit is contained in:
Michael Gapczynski 2012-06-29 11:09:17 -04:00
parent f311c2a2ff
commit 2d49a491fb

View file

@ -73,7 +73,8 @@ $(document).ready(function() {
$('#selectBackend').live('change', function() {
var tr = $(this).parent().parent();
$('#externalStorage tbody').last().append($(tr).clone());
$('#externalStorage tbody').append($(tr).clone());
$('#externalStorage tbody tr').last().find('.mountPoint input').val('');
var selected = $(this).find('option:selected').text();
var backendClass = $(this).val();
$(this).parent().text(selected);