Merge branch '2429-Resaltar-elementos-al-pasar-por-encima-o-marcar' into 'develop'
2429 resaltar elementos al pasar por encima o marcar See merge request artica/pandorafms!1762
This commit is contained in:
commit
e03f56f0d7
|
@ -313,7 +313,7 @@ $selectIntervalUp = '';
|
|||
$selectIntervalDown = '';
|
||||
$sortField = get_parameter('sort_field');
|
||||
$sort = get_parameter('sort', 'none');
|
||||
$selected = 'border: 1px solid black;';
|
||||
$selected = '';
|
||||
|
||||
$order[] = array('field' => 'tmodule_group.name', 'order' => 'ASC');
|
||||
|
||||
|
@ -547,7 +547,8 @@ $table->head[7] = __('Warn');
|
|||
|
||||
|
||||
$table->head[8] = __('Action');
|
||||
$table->head[9] = '<span title="' . __('Delete') . '">' . __('D.') . '</span>';
|
||||
$table->head[9] = '<span title="' . __('Delete') . '">' . __('Del.') . '</span>'.
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
|
||||
$table->rowstyle = array();
|
||||
$table->style = array ();
|
||||
|
@ -778,12 +779,13 @@ foreach ($modules as $module) {
|
|||
|
||||
if (check_acl_one_of_groups ($config['id_user'], $all_groups, "AW")) {
|
||||
// Delete module
|
||||
$data[9] = html_print_checkbox('id_delete[]', $module['id_agente_modulo'], false, true);
|
||||
$data[9] .= ' <a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo'].'"
|
||||
|
||||
$data[9] = '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo'].'"
|
||||
onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
|
||||
$data[9] .= html_print_image ('images/cross.png', true,
|
||||
array ('title' => __('Delete')));
|
||||
$data[9] .= '</a> ';
|
||||
$data[9] .= html_print_checkbox('id_delete[]', $module['id_agente_modulo'], false, true);
|
||||
}
|
||||
|
||||
array_push ($table->data, $data);
|
||||
|
@ -807,17 +809,32 @@ if (check_acl_one_of_groups ($config['id_user'], $all_groups, "AW")) {
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready (function () {
|
||||
$(document).ready (function () {
|
||||
|
||||
$('[id^=checkbox-id_delete]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('[id^=checkbox-id_delete]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('[id^=checkbox-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-id_delete]').parent().parent().addClass('checkselected');
|
||||
$("[name^=id_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-id_delete]').parent().parent().removeClass('checkselected');
|
||||
$("[name^=id_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
function change_mod_filter() {
|
||||
var checked = $("#checkbox-status_hierachy_mode").is(":checked");
|
||||
|
|
|
@ -111,7 +111,7 @@ $table->head[2] = __('Event type');
|
|||
$table->head[3] = __('Event status');
|
||||
$table->head[4] = __('Severity');
|
||||
$table->head[5] = __('Action') .
|
||||
html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();');
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->align = array ();
|
||||
|
@ -178,12 +178,32 @@ echo "</div>";
|
|||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_all_checkboxes() {
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$(".check_delete").prop('checked', true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").prop('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name=all_delete]").css("margin-left", "32px");
|
||||
|
||||
$( 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-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -151,10 +151,13 @@ $table->head[] = __("Login Function");
|
|||
$table->head[] = __("Agent operation tab");
|
||||
$table->head[] = __("Agent godmode tab");
|
||||
$table->head[] = __("Operation");
|
||||
|
||||
/*
|
||||
$table->width = array();
|
||||
$table->width[] = '30%';
|
||||
$table->width[] = '30%';
|
||||
*/
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->align = array();
|
||||
$table->align[] = 'left';
|
||||
|
|
|
@ -193,7 +193,7 @@ $table->class = 'databox data';
|
|||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Action') .
|
||||
html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();');
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->align = array ();
|
||||
|
@ -250,12 +250,31 @@ enterprise_hook('close_meta_frame');
|
|||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function check_all_checkboxes() {
|
||||
if ($("input[name=all_delete]").prop('checked')) {
|
||||
$(".check_delete").prop('checked', true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").prop('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
$( 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-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
|
|
@ -568,8 +568,7 @@ $table->head[3] = __('Description');
|
|||
$table->head[4] = __('Group');
|
||||
$table->head[5] = __('Max/Min');
|
||||
$table->head[6] = __('Action') .
|
||||
html_print_checkbox('all_delete', 0, false, true, false,
|
||||
'check_all_checkboxes();');
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->size = array ();
|
||||
$table->size[1] = '75px';
|
||||
$table->size[6] = '80px';
|
||||
|
@ -650,12 +649,30 @@ enterprise_hook('close_meta_frame');
|
|||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function check_all_checkboxes() {
|
||||
if ($("input[name=all_delete]").prop("checked")) {
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
}
|
||||
|
||||
$( 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-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
|
|
@ -239,16 +239,33 @@ echo '</div></form>';
|
|||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// If you click on the input type checkbox with id checkbox-all_delete
|
||||
$('#checkbox-all_delete').click(function() {
|
||||
// If selected (if the checked property equals true)
|
||||
if ($(this).prop('checked')) {
|
||||
// Select each input that has the class .check_delete
|
||||
$('.check_delete').prop('checked', true);
|
||||
} else {
|
||||
// deselect every input that has the class .check_delete
|
||||
$('.check_delete').prop('checked', false);
|
||||
}
|
||||
});
|
||||
|
||||
$( 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');
|
||||
}
|
||||
});
|
||||
|
||||
// If you click on the input type checkbox with id checkbox-all_delete
|
||||
$('[id^=checkbox-all_delete]').change(function(){
|
||||
// If selected (if the checked property equals true)
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
// Select each input that has the class .check_delete
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
// deselect every input that has the class .check_delete
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
@ -119,8 +119,7 @@ $table->head = array ();
|
|||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('Action') .
|
||||
html_print_checkbox('all_delete', 0, false, true, false,
|
||||
'check_all_checkboxes();');
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->align = array ();
|
||||
|
@ -174,12 +173,30 @@ enterprise_hook('close_meta_frame');
|
|||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_all_checkboxes() {
|
||||
if ($("input[name=all_delete]").attr('checked')) {
|
||||
$(".check_delete").attr('checked', true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").attr('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
$( 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-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
|
|
@ -168,8 +168,7 @@ if (!empty ($graphs)) {
|
|||
$op_column = true;
|
||||
$table->align[4] = 'left';
|
||||
$table->head[4] = __('Op.') .
|
||||
html_print_checkbox('all_delete', 0, false, true, false,
|
||||
'check_all_checkboxes();');
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->size[4] = '90px';
|
||||
}
|
||||
$table->data = array ();
|
||||
|
@ -236,13 +235,29 @@ else {
|
|||
|
||||
$("input[name=all_delete]").css("margin-left", "32px");
|
||||
|
||||
function check_all_checkboxes() {
|
||||
if ($("input[name=all_delete]").prop("checked")) {
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
}
|
||||
$( 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-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -28,6 +28,27 @@ $( document ).ready(function() {
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
$('[id^=checkbox-massive_report_check]').change(function(){
|
||||
if($(this).parent().parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
|
||||
$('[id^=checkbox-all_delete]').change(function(){
|
||||
if ($("#checkbox-all_delete").prop("checked")) {
|
||||
$('[id^=checkbox-massive_report_check]').parent().parent().parent().addClass('checkselected');
|
||||
$(".check_delete").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-massive_report_check]').parent().parent().parent().removeClass('checkselected');
|
||||
$(".check_delete").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -715,9 +736,10 @@ switch ($action) {
|
|||
if ($edit || $delete) {
|
||||
$columnview = true;
|
||||
if (!isset($table->head[$next])) {
|
||||
$table->head[$next] = '<span title="Operations">' . __('Op.') . '</span>';
|
||||
$table->head[$next] = '<span title="Operations">' . __('Op.') . '</span>'.
|
||||
html_print_checkbox('all_delete', 0, false, true, false);
|
||||
$table->size = array ();
|
||||
$table->size[$next] = '80px';
|
||||
//$table->size[$next] = '80px';
|
||||
$table->style[$next] = 'text-align:left;';
|
||||
}
|
||||
|
||||
|
|
|
@ -728,7 +728,7 @@ else {
|
|||
|
||||
if ($rows !== false) {
|
||||
if(defined('METACONSOLE'))
|
||||
echo '<table width="100%" cellspacing="4" cellpadding="4" class="databox">';
|
||||
echo '<table width="100%" cellspacing="4" cellpadding="4" class="databox data">';
|
||||
else
|
||||
echo '<table width="100%" cellspacing="4" cellpadding="4" class="databox data">';
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ if ($create_profile) {
|
|||
$table = new stdClass();
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->class = 'databox profile_list';
|
||||
$table->class = 'databox profile_list data';
|
||||
$table->width = '100%';
|
||||
|
||||
$table->head = array ();
|
||||
|
|
|
@ -432,7 +432,7 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
if (!is_metaconsole()) {
|
||||
$table->size[8] = '4%';
|
||||
if (check_acl ($config["id_user"], $id_group, "LW") || check_acl ($config["id_user"], $id_group, "LM")) {
|
||||
$table->head[9] = __('Validate');
|
||||
$table->head[9] = __('Validate'). html_print_checkbox('all_validate', 0, false, true, false);
|
||||
$table->align[9] = 'center';
|
||||
$table->size[9] = '5%';
|
||||
}
|
||||
|
@ -620,6 +620,28 @@ ui_require_jquery_file('cluetip');
|
|||
}).click (function () {
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$('[id^=checkbox-validate]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
|
||||
$('[id^=checkbox-all_validate]').change(function(){
|
||||
if ($("#checkbox-all_validate").prop("checked")) {
|
||||
$('[id^=checkbox-validate]').parent().parent().addClass('checkselected');
|
||||
$('[name^=validate]').prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-validate]').parent().parent().removeClass('checkselected');
|
||||
$('[name^=validate]').prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('table.alert-status-filter #ag_group').change (function () {
|
||||
|
@ -643,4 +665,4 @@ ui_require_jquery_file('cluetip');
|
|||
}
|
||||
}).change();
|
||||
|
||||
</script>
|
||||
</script>
|
|
@ -1,3 +1,31 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
$('[id^=checkbox-id_inc]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
|
||||
$('[id^=checkbox-all_action]').change(function(){
|
||||
if ($("#checkbox-all_action").prop("checked")) {
|
||||
$('[id^=checkbox-id_inc]').parent().parent().addClass('checkselected');
|
||||
$('[name^=id_inc]').prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-id_inc]').parent().parent().removeClass('checkselected');
|
||||
$('[name^=id_inc]').prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
|
@ -340,7 +368,7 @@ else {
|
|||
$table->head[5] = __('Updated');
|
||||
$table->head[6] = __('Source');
|
||||
$table->head[7] = __('Owner');
|
||||
$table->head[8] = __('Action');
|
||||
$table->head[8] = __('Action'). html_print_checkbox('all_action', 0, false, true, false);
|
||||
|
||||
$table->size[0] = 43;
|
||||
$table->size[7] = 50;
|
||||
|
|
|
@ -125,7 +125,7 @@ else {
|
|||
$table->head[1] = __('Sender');
|
||||
$table->head[2] = __('Subject');
|
||||
$table->head[3] = __('Timestamp');
|
||||
$table->head[4] = __('Delete'). html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();');
|
||||
$table->head[4] = __('Delete'). html_print_checkbox('all_delete_messages', 0, false, true, false);
|
||||
|
||||
foreach ($messages as $message_id => $message) {
|
||||
$data = array ();
|
||||
|
@ -192,13 +192,13 @@ else {
|
|||
$data[4] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'"
|
||||
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
||||
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
||||
html_print_checkbox_extended ('delete_multiple_messages[]', $message_id, false, false, '', 'class="check_delete_messages"', true);
|
||||
}
|
||||
else {
|
||||
$data[4] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&delete_message=1&id='.$message_id.'"
|
||||
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
||||
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
||||
html_print_checkbox_extended ('delete_multiple_messages[]', $message_id, false, false, '', 'class="check_delete_messages"', true);
|
||||
}
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
@ -229,12 +229,29 @@ echo "</div>";
|
|||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_all_checkboxes() {
|
||||
if ($("input[name=all_delete]").prop('checked')) {
|
||||
$(".check_delete").prop('checked', true);
|
||||
}
|
||||
else {
|
||||
$(".check_delete").prop('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
$('[id^=checkbox-delete_multiple_messages]').change(function(){
|
||||
if($(this).parent().parent().hasClass('checkselected')){
|
||||
$(this).parent().parent().removeClass('checkselected');
|
||||
}
|
||||
else{
|
||||
$(this).parent().parent().addClass('checkselected');
|
||||
}
|
||||
});
|
||||
|
||||
$('[id^=checkbox-all_delete_messages]').change(function(){
|
||||
if ($("#checkbox-all_delete_messages").prop("checked")) {
|
||||
$('[id^=checkbox-delete_multiple_messages]').parent().parent().addClass('checkselected');
|
||||
$(".check_delete_messages").prop("checked", true);
|
||||
}
|
||||
else{
|
||||
$('[id^=checkbox-delete_multiple_messages]').parent().parent().removeClass('checkselected');
|
||||
$(".check_delete_messages").prop("checked", false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue