Espinoza Guillermo 6 anos atrás
pai
commit
9c6824036f
1 arquivos alterados com 3 adições e 5 exclusões
  1. 3 5
      src/HostBundle/Resources/views/CRUD/edit.html.twig

+ 3 - 5
src/HostBundle/Resources/views/CRUD/edit.html.twig

@@ -8,13 +8,13 @@
 
 $(document).ready(function() {
 
-    showHostField(false);
+    showHostField();
 
     $("select[id$='hostType']").on('change', showHostField);
     
 });
 
-function showHostField(value)
+function showHostField()
 {
     var $hostTypeField = $("select[id$='hostType'] :selected");
     var $hostField = $("div.form-group[id$='host']");
@@ -25,9 +25,7 @@ function showHostField(value)
         $hostField.show();
     }
     
-    if (value !== false) {
-        updateFixedIPs();
-    }
+    updateFixedIPs();
 
     return false;
 }