fixed styles
This commit is contained in:
parent
f7aab35082
commit
5a41c8b61c
|
@ -949,30 +949,20 @@ html_print_action_buttons(
|
|||
?>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
$('[id^=checkbox-delete_multiple]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
$('[id^=checkbox-delete_multiple]').click(function(){
|
||||
if($(this).prop("checked") === false ){
|
||||
$(this).prop("checked", false);
|
||||
} else {
|
||||
$(this).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$('[id^=checkbox-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]')
|
||||
.parent()
|
||||
.parent()
|
||||
.addClass('checkselected');
|
||||
$(".check_delete")
|
||||
.prop("checked", true);
|
||||
$('#checkbox-all_delete').click(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked") === true) {
|
||||
$("[id^=checkbox-delete_multiple]").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]')
|
||||
.parent()
|
||||
.parent()
|
||||
.removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
$("[id^=checkbox-delete_multiple]").prop("checked", false);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -366,26 +366,30 @@ if (is_metaconsole() === true) {
|
|||
|
||||
html_print_table($table);
|
||||
|
||||
html_print_input_hidden('id_component_type', $id_component_type);
|
||||
$buttons = html_print_input_hidden('id_component_type', $id_component_type);
|
||||
if ($id) {
|
||||
html_print_input_hidden('update_component', 1);
|
||||
html_print_input_hidden('id', $id);
|
||||
$buttons .= html_print_input_hidden('update_component', 1, true);
|
||||
$buttons .= html_print_input_hidden('id', $id, true);
|
||||
$buttonCaption = __('Update');
|
||||
$buttonIcon = 'update';
|
||||
$buttonName = 'upd';
|
||||
html_print_submit_button(__('Update'), 'upd', false, 'class="sub upd"');
|
||||
} else {
|
||||
html_print_input_hidden('create_component', 1);
|
||||
html_print_input_hidden('create_network_from_module', 0);
|
||||
$buttons .= html_print_input_hidden('create_component', 1, true);
|
||||
$buttons .= html_print_input_hidden('create_network_from_module', 0, true);
|
||||
$buttonCaption = __('Create');
|
||||
$buttonIcon = 'wand';
|
||||
$buttonName = 'crt';
|
||||
}
|
||||
|
||||
html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_button(
|
||||
$buttons .= html_print_submit_button(
|
||||
$buttonCaption,
|
||||
$buttonName,
|
||||
false,
|
||||
['icon' => $buttonIcon],
|
||||
true
|
||||
);
|
||||
|
||||
$buttons .= html_print_button(
|
||||
__('Go back'),
|
||||
'go_back',
|
||||
false,
|
||||
|
@ -395,14 +399,10 @@ html_print_div(
|
|||
'mode' => 'secondary',
|
||||
],
|
||||
true
|
||||
).html_print_submit_button(
|
||||
$buttonCaption,
|
||||
$buttonName,
|
||||
false,
|
||||
['icon' => $buttonIcon],
|
||||
true
|
||||
),
|
||||
]
|
||||
);
|
||||
|
||||
html_print_action_buttons(
|
||||
$buttons
|
||||
);
|
||||
|
||||
echo '</form>';
|
||||
|
|
Loading…
Reference in New Issue