PDA

View Full Version : Loan / Mortgage calculator bug



Aleksandar Apostolovski
December 23, 2018, 12:05 PM
Hello I have this bug where I can't select Month/Date in the Loan calculator. I have already put ui.datepicker-mk.js because I use two languages.
I'm getting this error in the background:
TypeError: Cannot read property 'monthNamesShort' of undefined at loan_build_payment_date (https://www.registracija.mk/plugins/loanMortgageCalculator/static/loan_calc.js:107:70) at HTMLDocument.<anonymous> (https://www.registracija.mk/mk/patnichki-vozila/volkswagen/golf/golf-5-gti-19.html:1468:5) at l (https://www.registracija.mk/libs/jquery/jquery.js:89:63) at Object.fireWith [as resolveWith] (https://www.registracija.mk/libs/jquery/jquery.js:90:364) at Function.ready (https://www.registracija.mk/libs/jquery/jquery.js:94:149) at HTMLDocument.R (https://www.registracija.mk/libs/jquery/jquery.js:22:121)

Aleksandar Apostolovski
December 24, 2018, 07:22 PM
Can someone help me with this bug? I need it fixed as soon as possible.
Thanks.

Rudi
December 25, 2018, 02:49 AM
Hello,

See this thread: https://forum.flynax.com/showthread.php?5074-Weather-forecast-plugin-is-not-working-with-a-new-language&p=24201#post24201

Aleksandar Apostolovski
December 25, 2018, 06:12 AM
I already put datepicker-mk but it doesn't work

Rudi
December 25, 2018, 06:37 AM
In this case create a ticket

Viktor
December 25, 2018, 06:38 AM
Hello Aleksandar Apostolovski,

Would you please show me where do you see the errors? I have checked your site and Loan / Mortgage calculator working properly without any js errors.

Aleksandar Apostolovski
December 25, 2018, 08:34 AM
Here you have attached, Macedonian version isn't working

Aleksandar Apostolovski
December 25, 2018, 08:39 AM
And Report Listing isn't shown in the Macedonian version

Viktor
December 25, 2018, 10:29 AM
Hello Aleks,

Problem in ui.datapicker-ul.js
open file: ftp://libs/jquery/datePicker/i18n/ui.datepicker-mk.js

find line:
jQuery(function(╓){

and replace to:
jQuery(function($){

in your line exist wrong symbol and system show javascript error.

Aleksandar Apostolovski
December 25, 2018, 10:41 AM
That happened because in the meantime I was playing with the encoding. I fixed that but still nothing.
Btw, have a look here:
https://bootstrap-datepicker.readthedocs.io/en/latest/i18n.html

Maybe I should add the utf-8 charset, but where? Maybe print.tpl in the loan plugin folder?

Rudi
December 25, 2018, 04:18 PM
Keep discussion in the ticket you created attaching valid ftp details

and I'll look into the problem

Aleksandar Apostolovski
December 26, 2018, 09:19 PM
I solved this. I was using $.datepicker.regional['mk-MK'] instead of ['mk']