Forum

Source code in tick...
 
Notifications
Clear all

Source code in tickets webpage

3 Posts
2 Users
0 Reactions
23 Views
Posts: 21
Topic starter
(@aeromarine)
Member
Joined: 8 years ago

Dear all;

 

After upgrade to 1.12.2 and replace the directory with osTicket-1.12.2-Awesome-101 i have experienced an issue in the main ticket page:

Just after the tickets table (only tested with the Agent login) I can read the following content:

 

" ); $( "table.list.queue.tickets a.preview" ).wrap( " <br /><br />
" ); $( "td.osta_priority.osta_priority_low" ).closest( "tr" ).addClass( "priority-low"); $( "td.osta_priority.osta_priority_normal" ).closest( "tr" ).addClass( "priority-normal"); $( "td.osta_priority.osta_priority_high" ).closest( "tr" ).addClass( "priority-high"); $( "td.osta_priority.osta_priority_emergency" ).closest( "tr" ).addClass( "priority-emerency"); jQuery( ".truncate a" ).each(function(i, value) { var $link = jQuery(value); var text = $link.text(); if(text.length > 55) { $link.text(text.substring(0, 55) + "..."); } }); function myFunction(x) { if (x.matches) { // If media query matches $( "tbody tr" ).wrapInner( "" ); $( ".overdueTicket" ).closest( "tr" ).addClass( "overdue" ); $( ".overdue td.osta_ticket" ).append( " <br /><br />
" ); $( ".paperclip" ).closest( "tr" ).addClass( "paperclip-icon" ); $( ".paperclip-icon td.osta_ticket" ).append( " <br /><br />
" ); $( "tr" ).each(function() { var $test = $(this), $href = $test.find( ".pull-right"), $target = $test.find( "td.osta_ticket" ); $href.appendTo($target); }); } else { $( "tbody tr > .wrapper" ).contents().unwrap(); $( ".overdueTicket" ).closest( "tr" ).removeClass( "overdue" ); $( "td.osta_ticket .overdue-ticket" ).remove(); $( "td.osta_ticket .pull-right" ).remove(); $( ".paperclip" ).closest( "tr" ).removeClass( "paperclip-icon" ); } } var x = window.matchMedia( "(max-width: 760px)" ) myFunction(x) // Call listener function at run time x.addListener(myFunction) // Attach listener function on state changes

 

Thanks in advance

 


2 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

This was reported by a couple of users in June and, after much head scratching, I tracked it down to the fact that they were using the attachment_preview plugin. When the plugin is disabled, the issue is not present.

I opened a GitHub issue and the plugin developer and I were in communication for a little while, but it didn't lead to a resolution.

Until whatever in that plugin is mangling osTicket Awesome's jQuery code is fixed, the only solution is to disable the plugin by going to Admin Panel > Manage > Plugins.


Reply
Posts: 21
Topic starter
(@aeromarine)
Member
Joined: 8 years ago

Thanks stevland for your kindly anwer. I'll do it in that way.

Sorry if I have duplicated the issue in the forum, but I did not find it.

 

Thanks again


Reply
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

No worries! It is almost impossible to search for. A duplicate post may increase the chance that someone may find the answer to this issue. 🙂


Reply
Share: