Forum Replies Created
- AuthorPosts
azoreslab
ParticipantAlready fixed, I had to change the date format.
Thanks anywayazoreslab
ParticipantHi Ally
This code was useful for us to adapt our own code, and it worked.
Thanks a lot.Best regards
azoreslab
ParticipantAlso you can check the Enent Calendar in our website, working perfectly.
azoreslab
ParticipantHi
I already deleted the login. Thanks.
I’m sending another video for you to see, that even using your code, the problem still happens.
https://drive.google.com/file/d/1MxcvCpGmVn8qE66_KG1bGJcvI3A-k9gf/view?usp=sharing
I checked the database, I even used vpn to change location and timezone to check if this was the problem.
What could you have made different to not get this bug?Best regards
azoreslab
ParticipantHi Ally
Of course. Here you have the login.
*snip*
Let me know if you need some help.
Best regards
- This reply was modified 11 months, 1 week ago by
Ally. Reason: Removed private info
azoreslab
ParticipantHi Ally
I made a video explaining in the best way i can.
VIDEO EXPLAINING:
https://drive.google.com/file/d/1JJA_kdbu1-OsU-mc7nW5sSkYhi_6hgUq/view?usp=sharingBest regards
Rúben Medeirosazoreslab
ParticipantHi
Thank you a lot.
I’ve changed the code, so it would not show the days before today.const date = new Date();
let day = date.getDate();
let month = date.getMonth() + 1;
let year = date.getFullYear();
let currentDate =${year}, ${month}, ${day}
;jQuery(function ($) {
var start = $(‘.quform-field-1_43’).data(‘kendoDatePicker’),
end = $(‘.quform-field-1_47’).data(‘kendoDatePicker’),
daysBetween = 1;if (start && end) {
start.setOptions({
change: function () {
var startDate = start.value(),
endDate = end.value(),
newStartMax, newEndMin;if (startDate) {
newEndMin = new Date(startDate);
newEndMin.setDate(newEndMin.getDate() + daysBetween);
end.min(newEndMin);
} else if (endDate) {
newStartMax = new Date(endDate);
newStartMax.setDate(newStartMax.getDate() – daysBetween);
start.max(newStartMax);
end.min(new Date(console.log(currentDate)));
} else {
start.max(new Date(2099, 11, 31));
end.min(new Date(console.log(currentDate)));
}
}
});end.setOptions({
change: function () {
var endDate = end.value(),
startDate = start.value(),
newStartMax, newEndMin;if (endDate) {
newStartMax = new Date(endDate);
newStartMax.setDate(newStartMax.getDate() – daysBetween);
start.max(newStartMax);
} else if (startDate) {
newEndMin = new Date(startDate);
newEndMin.setDate(newEndMin.getDate() + daysBetween);
end.min(newEndMin);
start.max(new Date(2099, 11, 31));
} else {
start.max(new Date(2099, 11, 31));
end.min(new Date(console.log(currentDate)));
}
}
});
}
});azoreslab
ParticipantHi Ally
That worked perfectly!
Thank you very much.Best regards
azoreslab
ParticipantHi Ally
Thank you very much, it worked!
But I’m having a different problem now, in logic.I’m using, “if field” “contains” “value in different languages”, but smetimes it works, sometmes doesn’t.
I’m sending a print attached.https://www.azoresgolfislands.com/subscription/
Do you any other suggestion?
best regards
Attachments:
You must be logged in to view attached files.May 27, 2020 at 9:52 pm in reply to: “The response from the server was invalid or malformed” in Google Chrome #31315azoreslab
ParticipantIt worked for me.
I purged cache and cookies in chrome and cache in wordpress, and nothing.
I rebooted the pc and it was working fine. Not sure if it was the reboot after I’ve purged cache and cookies, but it’s working.- This reply was modified 11 months, 1 week ago by
- AuthorPosts