We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68e82f commit 47a4229Copy full SHA for 47a4229
tracsubtickets/htdocs/js/subtickets.js
@@ -1,11 +1,10 @@
1
-jQuery(function(){
2
- const anchor = document.getElementById('ticket');
3
- if (!anchor) {
4
- return;
+jQuery(function($) {
+ var ticketbox = document.getElementById('ticketbox');
+ if (ticketbox === null)
+ ticketbox = document.getElementById('ticket');
5
+ if (ticketbox !== null) {
6
+ var div = $(document.createElement('div'));
7
+ div.html(subtickets_div);
8
+ $(ticketbox).append(div.contents());
9
}
-
- const div = document.createElement('div');
- div.innerHTML = subtickets_div;
10
- anchor.appendChild(div);
11
});
0 commit comments