Datepicker error when adding custom hooks?
Posted: 2016-08-29 23:28
As pointed out by grimblefitz here: http://forums.appgini.com/phpbb/viewtop ... 1991#p6063
I too am seeing exactly the same error in the console:
Of course the file hooks/resources/datepicker/js/lang/en.js doesn't exist in the hooks folder. Correct path should be resources/datepicker/js/lang/en.js
I tried to find where that file was being called from to cause the error but I think it must be hidden deep somewhere and appears to comes about when you add custom files in the hooks folder that include:
Easy to get rid of the error by simply adding the language file to hooks folder but hardly correct/elegant and a little bit annoying too.
Any other suggestions?
I too am seeing exactly the same error in the console:
Code: Select all
datepicker.packed.js:38
GET http://domain.com/hooks/resources/datepicker/js/lang/en.js
(anonymous function) @ datepicker.packed.js:38
(anonymous function) @ datepicker.packed.js:167
I tried to find where that file was being called from to cause the error but I think it must be hidden deep somewhere and appears to comes about when you add custom files in the hooks folder that include:
Code: Select all
$currDir=dirname(__FILE__);
include("$currDir/../defaultLang.php");
include("$currDir/../language.php");
include("$currDir/../lib.php");
Any other suggestions?