summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 8cd5b47ca..0b05ae2e8 100644
--- a/functions.js
+++ b/functions.js
@@ -1,3 +1,17 @@
+function notify_callback() {
+ var container = document.getElementById('notify');
+ if (xmlhttp.readyState == 4) {
+ container.innerHTML=xmlhttp.responseText;
+ }
+}
+
+function rpc_notify_callback() {
+ var container = document.getElementById('notify');
+ if (xmlhttp_rpc.readyState == 4) {
+ container.innerHTML=xmlhttp_rpc.responseText;
+ }
+}
+
function param_escape(arg) {
if (typeof encodeURIComponent != 'undefined')
return encodeURIComponent(arg);
@@ -64,6 +78,10 @@ function hotkey_handler(e) {
localPiggieFunction(false);
}
+ if (typeof localHotkeyHandler != 'undefined') {
+ localHotkeyHandler(keycode);
+ }
+
}