0
我已經創建了一個新的OTRS模塊,但是我有一些Javascript文件的問題。
其實它似乎根本沒有執行。創建OTRS模塊
如果必要的話我可以給你包文件的幫助。
這是.sopm文件。
<?xml version="1.0" encoding="utf-8" ?>
<otrs_package version="1.0">
<Name>Stat</Name>
<Version>1.0.0</Version>
<Framework>5.0.19</Framework>
<Vendor>OTRS</Vendor>
<URL>www.otrs.org</URL>
<License>GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007</License>
<ChangeLog Version="5.0.19" Date="2017-07-14 16:00:11">Init Custom Stats.</ChangeLog>
<ChangeLog Version="5.0.19" Date="2017-07-19 09:57:11">Delete some files and change some directories.</ChangeLog>
<Description Lang="en">Stat</Description>
<IntroInstall Type="post" Lang="en" Title="Thank you!">Thank you for instaling this.</IntroInstall>
<BuildDate>?</BuildDate>
<BuildHost>?</BuildHost>
<Filelist>
<File Permission="755" Location="Stats/Kernel/Config/Files/stats.xml"></File>
<File Permission="755" Location="Stats/Kernel/System/CustomStats.pm"></File>
<File Permission="755" Location="Stats/Kernel/Modules/AgentCustomStats.pm"></File>
<File Permission="755" Location="Stats/Kernel/Language/de_CustomStats.pm"></File>
<File Permission="755" Location="Stats/Kernel/Output/HTML/Templates/Standard/AgentCustomStats.tt"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/jquery.min.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/bootstrap.min.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/fastclick.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/jquery.flot.js"></File>
<File Permission="666" Location="Stats/var/httpd/htdocs/js/jquery.flot.resize.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/jquery.flot.pie.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/jquery.flot.categories.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/customscript.js"></File>
<!-- <File Permission="755" Location="Stats/var/httpd/htdocs/js/demo.js"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/js/adminlte.min.js"></File> -->
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/fontawesome-webfont.woff2"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/fontawesome-webfont.woff"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/fontawesome-webfont.ttf"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/fontawesome-webfont.svg"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/fontawesome-webfont.eot"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/fonts/FontAwesome.otf"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/css/bootstrap.min.css"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/css/font-awesome.min.css"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/css/ionicons.min.css"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/css/AdminLTE.min.css"></File>
<File Permission="755" Location="Stats/var/httpd/htdocs/css/all-skins.min.css"></File>
</Filelist>
</otrs_package>
您可能已經這樣做了,但只是要確定 - 您是否嘗試清除OTRS和您的瀏覽器的緩存(即使用Ctrl + F5來重新加載)?這在過去一直是我的一個問題。你能從你的開發者控制檯執行JS函數嗎? (這決定了代碼是否已經被加載) – Maurice