Functions
admin_service_bodies.js File Reference

This file will be optimized and embedded in the HTML that is returned for the service body editor form. It will control the JavaScript and AJAX used for the form. More...

Functions

function ToggleNewServiceDiv ()
 This simply opens and closes the display of the service body editor form.
function ToggleOneSBEditDiv (in_sb_id)
 This simply opens and closes the display of one single service body editor form.
function EnableSBChangeButton (in_sb_id, in_disable)
 This simply opens and closes the display of the service body editor form.
function GetEditorArray (in_sb_id, in_array)
 Combs through the Service Body Editors checkboxes, and.
function SubmitServiceBody (in_sb_id, in_script_uri)
 Submits an AJAX call to change the Service Body.
function SubmitServiceBodyCallback (in_text, in_array)
 This is the AJAX callback from setting the Service Body. The processor will return a JSON object, and this function will react accordingly.
function ServiceBodyAdminChanged (in_sb_id, in_sb_user_id)
 Hides and/or shows any checkboxes for available admins.
function DeleteServiceBody (in_sb_id, in_script_uri)
 Submits an AJAX call to delete the Service Body.
function DeleteServiceBodyCallback (in_text, in_sb_id)
 This is the AJAX callback from deleting the Service Body. The processor will return a JSON object, and this function will react accordingly.

Detailed Description

This file will be optimized and embedded in the HTML that is returned for the service body editor form. It will control the JavaScript and AJAX used for the form.

This file is part of the Basic Meeting List Toolbox (BMLT).

Find out more at: http://magshare.org/bmlt

BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.


Function Documentation

function DeleteServiceBody (   in_sb_id,
  in_script_uri 
)

Submits an AJAX call to delete the Service Body.

Parameters:
in_sb_idThe numeric ID of the Service Body.
in_script_uriUsed to refresh for deleted Service Bodies
function DeleteServiceBodyCallback (   in_text,
  in_sb_id 
)

This is the AJAX callback from deleting the Service Body. The processor will return a JSON object, and this function will react accordingly.

Parameters:
in_textThe text response from the call.
in_sb_idThe ID of the Service Body Wrapper

Referenced by DeleteServiceBody().

function EnableSBChangeButton (   in_sb_id,
  in_disable 
)

This simply opens and closes the display of the service body editor form.

Parameters:
in_sb_idThe ID of the Service Body ("sb_XX").
in_disableIf true, disable the button (Default is false).

Referenced by DisplayOneServiceBodyEditor(), and SubmitServiceBodyCallback().

function GetEditorArray (   in_sb_id,
  in_array 
)

Combs through the Service Body Editors checkboxes, and.

Returns:
an array for each one that is checked.
Parameters:
in_sb_idThe ID of the Service Body ("sb_XX").
in_arrayAn array

Referenced by SubmitServiceBody().

function ServiceBodyAdminChanged (   in_sb_id,
  in_sb_user_id 
)

Hides and/or shows any checkboxes for available admins.

Parameters:
in_sb_idThe numeric ID of the Service Body.
in_sb_user_idThe ID of the selected admin.
function SubmitServiceBody (   in_sb_id,
  in_script_uri 
)

Submits an AJAX call to change the Service Body.

Parameters:
in_sb_idThe ID of the Service Body ("sb_XX").
in_script_uriUsed to refresh for new Service Bodies
function SubmitServiceBodyCallback (   in_text,
  in_array 
)

This is the AJAX callback from setting the Service Body. The processor will return a JSON object, and this function will react accordingly.

Parameters:
in_textThe text response from the call.
in_arrayThe DOM OD of the submit button, and the script for a refresh.

Referenced by SubmitServiceBody().

function ToggleNewServiceDiv ( )

This simply opens and closes the display of the service body editor form.

function ToggleOneSBEditDiv (   in_sb_id)

This simply opens and closes the display of one single service body editor form.

Parameters:
in_sb_idThe numerical ID of the service body.
 All Classes Files Functions Variables Enumerations