-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsh-hook-debug.js
More file actions
23 lines (23 loc) · 792 Bytes
/
Copy pathsh-hook-debug.js
File metadata and controls
23 lines (23 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
jQuery(document).ready(function($) {
$('body').append("<div id='hookdialog'></div>");
$( "#hooksearch" ).autocomplete({
source: hooks,
select: function (event, ui){
tag = ui.item.value;
instance = callbacks[tag];
title = 'Callbacks for <code>'+tag+'</code>';
html = '<ul>';
for (j=0; j<instance.length; j++){
html += '<ul> Call Instance: '+(j+1);
hooked = instance[j];
for (i=0; i<hooked.length; i++){
html += '<li><strong>'+hooked[i].name+'</strong> <small>prioity:'+hooked[i].priority+' args '+hooked[i].args+' </small></li>';
}
html += '</ul>';
}
html += '</ul>';
$('#hookdialog').html(html);
$('#hookdialog').dialog({ minWidth: 450, zIndex: 9999, title:title });
}
});
});