This file will be optimized and embedded in the HTML that is returned for a single meeting edit form. It will control the JavaScript and AJAX used for the editor form. More...
Functions | |
| function | c_geocoder_browser_edit_meeting (in_display_id, in_lat, in_lng, in_point_only) |
| Constructor. Sets up the map and the various DOM elements. | |
| function | MarkerSetCallbackGM (in_result) |
| function | CloseMeetingEditor () |
| Simply hides the meeting editor. | |
| function | GetRelevantMeetingNodes (id, node, prefix) |
| This sorts through the editor, and extracts values to be sent down via the AJAX call. It recursively explores the DOM tree from the given node, and loads up the global g_args parameter. | |
| function | ToggleDL (in_element) |
| This simply opens and closes the display of the deleted meetings list. | |
| function | CloseMap () |
| Simply hides the Map div. | |
| function | RevealMap (in_obj_id) |
| This reveals and moves the map div, so that it is visible and centered on the point. | |
| function | SubmitMeeting (in_meeting_id, in_obj_id) |
| function | SubmitMeetingCallback (in_text, in_param) |
| function | EnableMeetingChangeButton (in_obj_id, in_disable) |
| function | DeleteMeeting (in_meeting_id) |
| function | DeleteMeetingCallback (in_text, in_param) |
| function | RevertMeeting (in_meeting_id, in_change_id) |
| function | RevertMeetingCallback (in_text, in_meeting_id) |
| function | SortFormats (in_meeting_id) |
| function | SortFormatsCallback (in_text) |
| function | CheckboxSelectChanged (in_action) |
| function | CheckboxSelectChangedCallback (in_text) |
| function | AddNewDataItem (in_meeting_id) |
| function | DoNotAddDataItem (in_meeting_id) |
| function | DeleteMeetingDataItem (in_meeting_data_item_id) |
| function | UnDeleteMeetingDataItem (in_meeting_data_item_id) |
| function | OpenDataItemEditor () |
| function | CloseDataItemEditor () |
| function | CancelDataItemEditor () |
| function | ApplyDataItemEditor () |
| function | ToggleCheckBoxState () |
Variables | |
| var | g_args = null |
| var | g_start_time = null |
| var | g_duration_time = null |
| var | g_formats = null |
| var | g_dirty = false |
| var | g_geocoder_browser_edit_meeting = null |
| c_geocoder_browser_edit_meeting prototype | point = null |
| c_geocoder_browser_edit_meeting prototype | map = null |
| c_geocoder_browser_edit_meeting prototype | marker = null |
| c_geocoder_browser_edit_meeting prototype | insert = null |
| c_geocoder_browser_edit_meeting prototype | display_id = null |
| c_geocoder_browser_edit_meeting prototype | point_only = null |
| c_geocoder_browser_edit_meeting prototype | Dragend |
| c_geocoder_browser_edit_meeting prototype | MapClickCallback |
| Clicking in the map simulates a very fast drag. | |
| c_geocoder_browser_edit_meeting prototype | FindMarker |
| When the "Find Marker" button is clicked, this function is called. It merely re-centers the map. | |
This file will be optimized and embedded in the HTML that is returned for a single meeting edit form. It will control the JavaScript and AJAX used for the editor 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 AddNewDataItem | ( | in_meeting_id | ) |
| in_meeting_id | The ID of the meeting |
| function ApplyDataItemEditor | ( | ) |
| function c_geocoder_browser_edit_meeting | ( | in_display_id, | |
| in_lat, | |||
| in_lng, | |||
| in_point_only | |||
| ) |
Constructor. Sets up the map and the various DOM elements.
| function CancelDataItemEditor | ( | ) |
Referenced by CheckboxSelectChangedCallback().
| function CheckboxSelectChanged | ( | in_action | ) |
| function CheckboxSelectChangedCallback | ( | in_text | ) |
Referenced by ApplyDataItemEditor(), and CheckboxSelectChanged().
| function CloseDataItemEditor | ( | ) |
Referenced by CancelDataItemEditor(), and CheckboxSelectChanged().
| function CloseMap | ( | ) |
Simply hides the Map div.
Referenced by CloseMeetingEditor(), and EditMeetingLink().
| function CloseMeetingEditor | ( | ) |
Simply hides the meeting editor.
Referenced by DeleteMeetingCallback().
| function DeleteMeeting | ( | in_meeting_id | ) |
| in_meeting_id | The ID of the meeting |
| function DeleteMeetingCallback | ( | in_text, | |
| in_param | |||
| ) |
Referenced by DeleteMeeting().
| function DeleteMeetingDataItem | ( | in_meeting_data_item_id | ) |
| function DoNotAddDataItem | ( | in_meeting_id | ) |
| in_meeting_id | The ID of the meeting |
| function EnableMeetingChangeButton | ( | in_obj_id, | |
| in_disable | |||
| ) |
| function GetRelevantMeetingNodes | ( | id, | |
| node, | |||
| prefix | |||
| ) |
This sorts through the editor, and extracts values to be sent down via the AJAX call. It recursively explores the DOM tree from the given node, and loads up the global g_args parameter.
| id | The meeting ID. |
| node | The root node for the crawl. |
| prefix | A prefix for the element IDs that needs to be stripped. |
Referenced by SortFormats().
| function MarkerSetCallbackGM | ( | in_result | ) |
| in_result | A search result object array. |
| function OpenDataItemEditor | ( | ) |
Referenced by CheckboxSelectChanged().
| function RevealMap | ( | in_obj_id | ) |
This reveals and moves the map div, so that it is visible and centered on the point.
| in_obj_id | The ID of the element containing the map. |
Referenced by CloseMap().
| function RevertMeeting | ( | in_meeting_id, | |
| in_change_id | |||
| ) |
| in_meeting_id | This is an integer, with the meeting ID. |
| in_change_id | This is an integer, with the change ID. |
| function RevertMeetingCallback | ( | in_text, | |
| in_meeting_id | |||
| ) |
| in_meeting_id | The ID of the meeting |
Referenced by RevertMeeting().
| function SortFormats | ( | in_meeting_id | ) |
Referenced by EditMeetingLinkCallback().
| function SortFormatsCallback | ( | in_text | ) |
Referenced by SortFormats().
| function SubmitMeeting | ( | in_meeting_id, | |
| in_obj_id | |||
| ) |
| in_meeting_id | The ID of the meeting |
| function SubmitMeetingCallback | ( | in_text, | |
| in_param | |||
| ) |
| function ToggleCheckBoxState | ( | ) |
| function ToggleDL | ( | in_element | ) |
This simply opens and closes the display of the deleted meetings list.
| in_element | The element to be toggled. |
| function UnDeleteMeetingDataItem | ( | in_meeting_data_item_id | ) |
Referenced by c_geocoder_browser_edit_meeting().
function ( )
{
var id = g_geocoder_browser_edit_meeting.display_id;
g_geocoder_browser_edit_meeting.point = g_geocoder_browser_edit_meeting.marker.getLatLng();
if ( document.getElementById(id+'_longitude') != null )
{
var oldlongval = document.getElementById(id+'_longitude').value;
var oldlatval = document.getElementById(id+'_latitude').value;
var longval = g_geocoder_browser_edit_meeting.point.lng();
var latval = g_geocoder_browser_edit_meeting.point.lat();
document.getElementById(id+'_longitude').value = longval;
document.getElementById(id+'_latitude').value = latval;
var new_long = longval != oldlongval;
var new_lat = latval != oldlatval;
if (new_long) EnableMeetingChangeButton(id, false);
if (new_lat) EnableMeetingChangeButton(id), false;
};
if ( document.getElementById(id+'_published') != null )
{
document.getElementById(id+'_published').disabled = false;
};
}
function ( )
{
g_geocoder_browser_edit_meeting.map.panTo ( g_geocoder_browser_edit_meeting.point );
}
When the "Find Marker" button is clicked, this function is called. It merely re-centers the map.
| var g_args = null |
Referenced by GetRelevantMeetingNodes().
| var g_dirty = false |
Referenced by CloseMeetingEditor(), DeleteMeetingCallback(), and EnableMeetingChangeButton().
| var g_duration_time = null |
Referenced by GetRelevantMeetingNodes().
| var g_formats = null |
Referenced by GetRelevantMeetingNodes(), and SortFormats().
| var g_geocoder_browser_edit_meeting = null |
There is only one single instance of this map.
Referenced by c_geocoder_browser_edit_meeting(), MarkerSetCallbackGM(), and RevealMap().
| var g_start_time = null |
Referenced by GetRelevantMeetingNodes().
The Google Maps instance
Referenced by MakeMainMap().
function ( in_overlay, in_point )
{
g_geocoder_browser_edit_meeting.marker.setLatLng (in_point );
g_geocoder_browser_edit_meeting.Dragend();
}
Clicking in the map simulates a very fast drag.
The marker instance
Referenced by MakeMainMap(), MarkerSetCallback(), and MarkerSetCallbackGM().
These are the various class data members. The current GLatLng for the map marker
Referenced by CreateCenterMarker(), CreateCircularOverlay(), CreateMapMarker(), DragEnd(), EInsert(), MakeMainMap(), and WhereAmI_CallBack().
1.7.4