Commits
Krists Krigers authored d068c1542ce
..F....... [ZBX-4785] Implement support for serialization on client side (via JSON) of form variables on submit and corresponding processing on server side. - Implement jQuery plugin with method .serializeFieldsOnSubmit(), augmenting form onSubmit handler so that specified fields are serialized with JSON and then sent JSON to server. Plugin invocation is added to init.js for now. - Add new request validation type - T_ZBX_JSON that converts value from request from JSON string to PHP array. - Update method CForm::registerSerializedField() and override CForm::startToString() to add "data-serialized-fields" attribute (used by jQuery plugin). - Update usergrps.php and administration.usergroups.edit.php to use new form field serialization for "right_to_del" and "group_rights" fields.