diff --git a/circle/dashboard/static/dashboard/vm-details.js b/circle/dashboard/static/dashboard/vm-details.js index 3129f9d..475e038 100644 --- a/circle/dashboard/static/dashboard/vm-details.js +++ b/circle/dashboard/static/dashboard/vm-details.js @@ -186,18 +186,7 @@ $(function() { success: function(re, textStatus, xhr) { /* remove the html element */ $('a[data-interface-pk="' + data.pk + '"]').closest("div").fadeOut(); - - /* add the removed element to the list */ - network_select = $('select[name="new_network_vlan"]'); - name_html = (re.removed_network.managed ? "": "") + " " + re.removed_network.vlan; - option_html = '<option value="' + re.removed_network.vlan_pk + '">' + name_html + '</option>'; - // if it's -1 then it's a dummy placeholder so we can use .html - if($("option", network_select)[0].value === "-1") { - network_select.html(option_html); - network_select.next("div").children("button").prop("disabled", false); - } else { - network_select.append(option_html); - } + location.reload(); }, error: function(xhr, textStatus, error) { addMessage('Uh oh :(', 'danger')