Merge branch 'ent-4318-Añadir-buscador-en-operaciones-masivas-vol2' into 'develop'
Added filter by agent - #4318 See merge request artica/pandorafms!2588
This commit is contained in:
commit
4dc5ee2fca
|
@ -273,6 +273,9 @@ $table->data[1][1] = html_print_select(
|
|||
true
|
||||
);
|
||||
|
||||
$table->data['form_agents_filter'][0] = __('Filter Agents');
|
||||
$table->data['form_agents_filter'][1] = html_print_input_text('filter_agents', '', '', 20, 255, true);
|
||||
|
||||
$table->data[2][0] = __('Agent');
|
||||
$table->data[2][0] .= '<span id="destiny_agent_loading" class="invisible">';
|
||||
$table->data[2][0] .= html_print_image('images/spinner.png', true);
|
||||
|
@ -354,6 +357,11 @@ $(document).ready (function () {
|
|||
/* Hide source agent */
|
||||
var selected_agent = $("#source_id_agent").val();
|
||||
$("#destiny_id_agent option[value='" + selected_agent + "']").remove();
|
||||
},
|
||||
callbackAfter:function() {
|
||||
//Filter agents. Call the function when the select is fully loaded.
|
||||
var textNoData = "<?php echo __('None'); ?>";
|
||||
filterByText($('#destiny_id_agent'), $("#text-filter_agents"), textNoData);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -455,13 +463,14 @@ $(document).ready (function () {
|
|||
$("#fieldset_destiny").hide ();
|
||||
|
||||
$("span.without_modules, span.without_alerts").show ();
|
||||
$("span.with_modules, span.with_alerts, #target_table-operations").hide ();
|
||||
$("span.with_modules, span.with_alerts, #target_table-operations, #target_table-form_modules_filter").hide ();
|
||||
}
|
||||
else {
|
||||
if (no_modules) {
|
||||
$("span.without_modules").show ();
|
||||
$("span.with_modules").hide ();
|
||||
$("#checkbox-copy_modules").uncheck ();
|
||||
$("#target_table-form_modules_filter").hide ();
|
||||
}
|
||||
else {
|
||||
$("span.without_modules").hide ();
|
||||
|
@ -479,7 +488,7 @@ $(document).ready (function () {
|
|||
$("span.with_alerts").show ();
|
||||
$("#checkbox-copy_alerts").check ();
|
||||
}
|
||||
$("#fieldset_destiny, #target_table-operations").show ();
|
||||
$("#fieldset_destiny, #target_table-operations, #target_table-form_modules_filter").show ();
|
||||
}
|
||||
$("#fieldset_targets").show ();
|
||||
$("#target_modules, #target_alerts").enable ();
|
||||
|
|
|
@ -501,6 +501,11 @@ $table->data['form_agents_4'][1] = html_print_select(
|
|||
true
|
||||
);
|
||||
|
||||
$table->rowstyle['form_agents_filter'] = 'vertical-align: top;';
|
||||
$table->rowclass['form_agents_filter'] = 'select_agents_row select_agents_row_2';
|
||||
$table->data['form_agents_filter'][0] = __('Filter Agents');
|
||||
$table->data['form_agents_filter'][1] = html_print_input_text('filter_agents', '', '', 20, 255, true);
|
||||
|
||||
$table->rowstyle['form_agents_3'] = 'vertical-align: top;';
|
||||
$table->rowclass['form_agents_3'] = 'select_agents_row select_agents_row_2';
|
||||
$table->data['form_agents_3'][0] = __('Agents');
|
||||
|
@ -763,6 +768,9 @@ $(document).ready (function () {
|
|||
.html (value["alias"]);
|
||||
$("#id_agents").append (option);
|
||||
});
|
||||
//Filter agents. Call the function when the select is fully loaded.
|
||||
var textNoData = "<?php echo __('None'); ?>";
|
||||
filterByText($('#id_agents'), $("#text-filter_agents"), textNoData);
|
||||
},
|
||||
"json"
|
||||
);
|
||||
|
|
|
@ -473,6 +473,11 @@ $table->data['form_agents_4'][1] = html_print_select(
|
|||
true
|
||||
);
|
||||
|
||||
$table->rowstyle['form_agents_filter'] = 'vertical-align: top;';
|
||||
$table->rowclass['form_agents_filter'] = 'select_agents_row select_agents_row_2';
|
||||
$table->data['form_agents_filter'][0] = __('Filter agents');
|
||||
$table->data['form_agents_filter'][1] = html_print_input_text('filter_agents', '', '', 20, 255, true);
|
||||
|
||||
$table->rowstyle['form_agents_3'] = 'vertical-align: top;';
|
||||
$table->rowclass['form_agents_3'] = 'select_agents_row select_agents_row_2';
|
||||
$table->data['form_agents_3'][0] = __('Agents');
|
||||
|
@ -1638,6 +1643,9 @@ $(document).ready (function () {
|
|||
.html(value["alias"]);
|
||||
$("#id_agents").append (option);
|
||||
});
|
||||
//Filter agents. Call the function when the select is fully loaded.
|
||||
var textNoData = "<?php echo __('None'); ?>";
|
||||
filterByText($('#id_agents'), $("#text-filter_agents"), textNoData);
|
||||
},
|
||||
"json"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue