webadmin: Fix replicate bricks confirmation not closing

When adding bricks to a replicate volume, if the bricks of a
sub-volume resides in the same machine a confirmation will be
shown. The confirmation dialog was not getting closed after clicking yes,
this is fixed now.

Change-Id: Ib4d7e76e5e82329bac4cb0368f45caccacc2b62d
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>