mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-06 21:44:53 +02:00
* godmode/agentes/module_manager_editor.php, godmode/agentes/module_manager_editor_common.php, godmode/agentes/module_manager_editor_data.php, godmode/agentes/module_manager_editor_network.php, godmode/agentes/module_manager_editor_plugin.php, godmode/agentes/module_manager_editor_prediction.php, godmode/agentes/module_manager_editor_wmi.php, godmode/agentes/module_manager.php: Some fixes to allow form reutilization. * include/javascript/jquery.pandora.controls.js: Fixed a typo. Added pandoraSelectGroup control. * include/javascript/jquery.pandora.js: Separate between auto executed code and document ready function. * include/javascript/pandora_modules.js: Added to repository. Functions to use on module editors. * include/functions_agents.php: Added get_agents(). * include/functions_db.php: Added get_user_first_group(). Changed user_access_to_agent() parameters order. * include/functions_reporting.php: Style corrections. * include/functions_ui.php: Added doc to print_status_image(). Added print_ui_agents_list() to print a list of agents with a search form and a lot of configuration options easily. * include/functions_ui_renders.php: Added to repository. New API for renders on UI components. * operation/agentes/estado_agente.php: Make table wider. * godmode/reporting/reporting_builder.php: Replaced exit with return. Use pandoraSelectGroup control. * godmode/servers/manage_recontask_form.php: Style corrections to fit Pandora styles. * godmode/servers/modificar_server.php: Removed a notice from a typo. * godmode/setup/setup.php: Fixed table data indexes. Removed javascript code from visual setup. * godmode/setup/setup_visuals.php: Some strings changed. Style correction. * godmode/menu.php: Added policies enterprise menu option. * images/policies.png: Added to repository. * godmode/agentes/modificar_agente.php: Style correction by using pandora functions. * godmode/agentes/massive_operations.php: Fixed tab styles that was showing wrong the . * godmode/agentes/manage_config_remote.php: Changes in user_access_to_agent() * general/ui/agents_list.php: Added to repository. Reusable render for an agent list. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1632 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
(function($) {
|
|
$.fn.check = function () {
|
|
return this.each (function () {
|
|
this.checked = true;
|
|
})};
|
|
|
|
$.fn.uncheck = function () {
|
|
return this.each (function () {
|
|
this.checked = false;
|
|
})};
|
|
|
|
$.fn.enable = function () {
|
|
return $(this).removeAttr ("disabled");
|
|
};
|
|
|
|
$.fn.disable = function () {
|
|
return $(this).attr ("disabled", "disabled");
|
|
};
|
|
|
|
$.fn.pulsate = function () {
|
|
var i = 0;
|
|
for (i = 0; i <= 2; i++) {
|
|
$(this).fadeOut ("slow").fadeIn ("slow");
|
|
}
|
|
};
|
|
|
|
$.fn.showMessage = function (msg) {
|
|
return $(this).hide ().empty ()
|
|
.text (msg)
|
|
.slideDown ();
|
|
};
|
|
}) (jQuery);
|
|
|
|
$(document).ready (function () {
|
|
$("a#show_messages_dialog").click (function () {
|
|
jQuery.get ("ajax.php",
|
|
{"page": "operation/messages/message"},
|
|
function (data, status) {
|
|
$("#dialog_messages").hide ()
|
|
.empty ()
|
|
.append (data)
|
|
.dialog ({
|
|
title: $("a#show_messages_dialog").attr ("title"),
|
|
resizable: false,
|
|
modal: true,
|
|
overlay: {
|
|
opacity: 0.5,
|
|
background: "black"
|
|
},
|
|
bgiframe: jQuery.browser.msie,
|
|
width: 700,
|
|
height: 300
|
|
})
|
|
.show ();
|
|
},
|
|
"html"
|
|
);
|
|
|
|
return false;
|
|
});
|
|
});
|