- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
64 lines
1.9 KiB
JavaScript
64 lines
1.9 KiB
JavaScript
/*
|
|
* WindowMsg jquery plugin
|
|
*
|
|
* Copyright (c) 2008 Peter Hulst (sfpeter.com / hollice.com)
|
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
|
* and GPL (GPL-LICENSE.txt) licenses.
|
|
*
|
|
* Version 1.0
|
|
*/
|
|
(function($) {
|
|
|
|
// this array keeps the list of event handlers and names
|
|
$.windowMsgHandlers = [];
|
|
|
|
// this init method must be called in the parent window upon page load
|
|
$.initWindowMsg = function() {
|
|
$('body').append($('<form name="windowComm"></form>')
|
|
.append($('<input type="hidden" name="windowCommEvent">'))
|
|
.append($('<input type="hidden" name="windowCommData">'))
|
|
.append($('<input id="myinput" type="button" name="windowCommButton" value="" style="display:none">')));
|
|
|
|
// register event listener
|
|
$('#myinput').click(function() {
|
|
eventType = $('[name=windowCommEvent]').val();
|
|
data = $('[name=windowCommData]').val();
|
|
//console.log('received event/data: ' + eventType + " / " + data);
|
|
|
|
for (var i=0; i<$.windowMsgHandlers.length; i++) {
|
|
h = $.windowMsgHandlers[i];
|
|
if (h.event == eventType) {
|
|
h.callback.call(null, data); // call the callback method
|
|
break;
|
|
}
|
|
}
|
|
});
|
|
};
|
|
|
|
// triggers an event in the parent window. Returns true if the
|
|
// message was succesfully sent, otherwise false.
|
|
$.triggerParentEvent = function(event, msg) {
|
|
$.triggerWindowEvent(window.opener, event, msg);
|
|
};
|
|
|
|
// triggers an event in a window that was opened by the current window
|
|
$.triggerWindowEvent = function(otherWindow, event, msg) {
|
|
if (typeof otherWindow == "object") {
|
|
form = otherWindow.document.forms["windowComm"];
|
|
if (form) {
|
|
form.windowCommEvent.value = event;
|
|
form.windowCommData.value = msg;
|
|
form.windowCommButton.click();
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// adds a handler for a message from child window
|
|
$.windowMsg = function(event, callback) {
|
|
$.windowMsgHandlers.push({event: event, callback: callback});
|
|
}
|
|
|
|
})(jQuery);
|