Where can I find the Javascripts and CSS that are loaded by loader?

Moderator: crythias

Locked
OTRSRDNewbie
Znuny newbie
Posts: 69
Joined: 29 Apr 2016, 10:23
Znuny Version: 3.2, 5
Real Name: Dennis Cua
Company: N/A

Where can I find the Javascripts and CSS that are loaded by loader?

Post by OTRSRDNewbie »

Where can I find the Javascripts and CSS that are loaded by loader?

Here's the thing I have a ticket issue that seems to be only showing up on CustomerTicketMessage in the production server. I am not yet allowed to touch the production server. So I am just trying to reverse engineer the codes in the pre-prod server maybe its the replication steps that the reporter made miss something.

I am not familiar and new to OTRS so I believe I will need guidance on what I should be looking for in terms of the dtl files and pm files in the frontend.

My predecessor by the way did not create any custom folder if he made any changes he just save it in the otrs dtl, pm files directly. Its hard for me to know where to start looking.

We're using otrs 3.3.2 running on Red Hat Enterprise Linux Server release 6.3. Tried replicating the ticket issue in Chrome, I.E. 8, Firefox, and Opera but it looks like I can't replicate this in pre-prod. I am not allowed to touch anything in the production server so I am unable to verify if the issue is still showing up in the production.

According to the reporter, I just need to add a 'HR' in comment of the customer's information. Then just login create a new ticket. What the ticket says is after the attachment is added and submit button is pressed. It will display an error message that Type is missing and the Subject field is cleared up.

I have tried, putting Type ('Incident and 'Service Request') and leaving out Type. But I have yet to see the subject field cleared when the Type is mandatory error message shows up.

Currently I am only hoping to understand dtl and pm files in the front end. Mostly on where should I be looking for the Javascript files, since the loader will create a special memory for the css and javascript. How to determine given I press a button which javascript method will be executed since the loader produce a compact version.

Any tips on how to debug this in Firefox, chrome, Opera, IE. I am aware Firefox, Chrome and I think Opera has developer tools. My experience is mostly in firmware, standalone software, mobile application, and backend. Can anyone just guide me where to start researching on debugging the front end using the developer tools or just point me in the direction of good documents.

Also about the javascript locations before its been loaded.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Where can I find the Javascripts and CSS that are loaded by loader?

Post by RStraub »

Javascript is located under:
~otrs/var/httpd/htdocs/js

Css is located under:
~otrs/var/httpd/htdocs/skins/Agent/default/css
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Where can I find the Javascripts and CSS that are loaded by loader?

Post by wurzel »

Hi,

for debugging disable the js and css caching. should be located somewhere Core::Web
Do not disable in production systems.

:-)

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Locked