19 Posts
kitamot
7 years ago
Topic

Hello anyone,

After the seblod 3.11.2 the JS Code pack field doesn't work (it's work fine before the update).

The code inside is with the "document ready" comportement :

$("#da_date").on("change", function(){ 

var t1 = $("#da_date_hidden"); 

if ($("#da_select_typedat").val()=="1"){ 

$("#da_date2_hidden").val(t1.val());

});

Someone have the same problem?

Thanks in advance

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
3
Level 1

Have you updated code pack?

Also - what do you mean by "not working"? Is is different than in previous versions or does it create an error or nothing is output at all?

19 Posts
kitamot
7 years ago
2
Level 2

Klas,

I have updated the code pack.

After the update nothing happened (a date field must be filled by another date field)... I try with an alert("hhh"); in the code, nothing...

Before the update the second date field is filled by the first date field... it was ok

Thanks in advance

4229 Posts
Kadministrator
7 years ago
1
Level 3

it is a problem with calendar field itself, see here: https://github.com/Octopoos/SEBLOD/commit/b9b7256f13014629af7974c0767df7cd936786e7

19 Posts
kitamot
7 years ago
0
Level 4

Thanks very much Klas,

With this change it works!

Get a Book for SEBLOD