mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Bug #3928: Fix abide required attribute in table input
Apparently display:none inputs are now ignored by abide
This commit is contained in:
parent
25f480f916
commit
060f3559fd
@ -598,7 +598,6 @@ define(function(require) {
|
||||
$('#select_resource_multiple_' + that.dataTableId, section).show();
|
||||
}
|
||||
|
||||
$('#selected_resource_id_' + that.dataTableId, section).hide();
|
||||
$('#selected_resource_name_' + that.dataTableId, section).hide();
|
||||
|
||||
$('#selected_ids_row_' + that.dataTableId, section).data("options", that.selectOptions);
|
||||
@ -707,7 +706,6 @@ define(function(require) {
|
||||
$('input.check_item', this).prop('checked', true);
|
||||
|
||||
$('#selected_resource_id_' + that.dataTableId, section).val(aData[that.selectOptions.id_index]).change();
|
||||
$('#selected_resource_id_' + that.dataTableId, section).hide();
|
||||
|
||||
$('#selected_resource_name_' + that.dataTableId, section).text(aData[that.selectOptions.name_index]).change();
|
||||
$('#selected_resource_name_' + that.dataTableId, section).show();
|
||||
@ -735,7 +733,6 @@ define(function(require) {
|
||||
$('#' + that.dataTableId + '_search', section).val("").trigger("input");
|
||||
$('#refresh_button_' + that.dataTableId).click();
|
||||
|
||||
$('#selected_resource_id_' + that.dataTableId, section).val("").hide();
|
||||
$('#selected_resource_name_' + that.dataTableId, section).text("").hide();
|
||||
|
||||
$('#selected_resource_' + that.dataTableId, section).hide();
|
||||
@ -888,7 +885,6 @@ define(function(require) {
|
||||
// $('input.check_item', this).prop('checked', true);
|
||||
|
||||
$('#selected_resource_id_' + that.dataTableId, section).val(row_id).change();
|
||||
$('#selected_resource_id_' + that.dataTableId, section).hide();
|
||||
|
||||
$('#selected_resource_name_' + that.dataTableId, section).text(row_name).change();
|
||||
$('#selected_resource_name_' + that.dataTableId, section).show();
|
||||
|
@ -30,8 +30,8 @@
|
||||
<span id="selected_resource_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.you_selected}}</span>
|
||||
<span id="select_resource_multiple_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.select_resource_multiple}}</span>
|
||||
<span id="selected_resource_multiple_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.you_selected_multiple}}</span>
|
||||
<input id="selected_resource_id_{{dataTableId}}" type="text"/>
|
||||
<span id="selected_resource_name_{{dataTableId}}" class="radius label" type="text"></span>
|
||||
<input id="selected_resource_id_{{dataTableId}}" type="text" style="visibility: hidden; width:0px !important; height:0px !important;padding: 0px !important;margin: 0px !important;display: inline;"/>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
@ -118,10 +118,7 @@ define(function(require) {
|
||||
|
||||
$('#refresh_button_' + unique_id).click();
|
||||
|
||||
$("input#selected_resource_id_" + unique_id, div).attr(
|
||||
"wizard_field", vnet_attr.name);
|
||||
|
||||
$("input#selected_resource_id_" + unique_id, div).attr("required", "")
|
||||
vnetsTable.idInput().attr("wizard_field", vnet_attr.name).attr("required", "");
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user