Skip to content

Commit

Permalink
fix delete real in new pool(vip request)
Browse files Browse the repository at this point in the history
  • Loading branch information
edersonbrilhante committed Aug 24, 2016
1 parent e6a7d58 commit b95453d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CadVlan/VipRequest/templates/vip-request/form_pool.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

$(".numbersOnly").live('focusout', function(){
this_element = $(this);
$(this).next().click(function(){
$(this).next().click(function(){
update_port_vips(this_element);
});
});
Expand Down Expand Up @@ -133,14 +133,14 @@
});

$("#table_real").off("click", "tbody tr span")
$("#table_real").on("change", "tbody tr span", function(e) {
$("#table_real").on("click", "tbody tr span", function(e) {
if (confirm('Deseja realmente excluir o(s) Real selecionado(s)?')){
$(this).parents(".remove_port").remove();
return false;
}
});

$("body").off("click", "#id_environment")
$("body").off("change", "#id_environment")
$("body").on("change", "#id_environment", function() {
$('#id_healthcheck').html('<option value=""> - </option>');

Expand Down Expand Up @@ -220,7 +220,7 @@
<label for="{{ field.auto_id }}">{{ field.label_tag }}{% if field.field.required %}<span style="color: red;">*</span>{% endif %}</label>
</div>
{{ field }}
{% if field.errors %}
{% if field.errors %}
<p id="error">
{% for error in field.errors %}
{{ error|escape }}
Expand All @@ -237,7 +237,7 @@
<label for="{{ field.auto_id }}">{{ field.label_tag }}{% if field.field.required %}<span style="color: red;">*</span>{% endif %}</label>
</div>
{{ field }}
{% if field.errors %}
{% if field.errors %}
<p id="error">
{% for error in field.errors %}
{{ error|escape }}
Expand Down Expand Up @@ -329,4 +329,4 @@
</div>
</div>
</form>
</div>
</div>

0 comments on commit b95453d

Please sign in to comment.