Comments (11)
In effect with this code it seems to work:
$("#calendar").data("jqm-calendar").settings.months=["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"];
$("#calendar").data("jqm-calendar").settings.days=["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"];
$("#calendar").trigger('refresh', new Date());
Except that the days do not get updated...
from jqm-calendar.
I never thought of the use of refreshing the calendar for different translations. Both the start day of the week (eg. on sunday or monday) and the labels for the days are rendered in the init()
function and not in the update function.
See: https://github.com/JWGmeligMeyling/jqm-calendar/blob/master/jw-jqm-cal.js#L80
I think it's quite easy to fix, but unfortunately I wont have the time for this now..
from jqm-calendar.
Thanks, I will give it a try and if succesfull I'll commit the changes...
Do you mean I should move
the start day of the week (eg. on sunday or monday) and the labels for the days
to refresh() ?
from jqm-calendar.
Yes I meant that, but I believe you already found out 😉
from jqm-calendar.
I did not find an easy way to do that... thanks for any code change from your side :-)
from jqm-calendar.
Then i'll reopen. Unfortunately I don't have the time to get involved on this issue now 😢
from jqm-calendar.
Thanks a lot :-)
from jqm-calendar.
Hi Jan, any update here? Got the first user noticing it :-) ...
from jqm-calendar.
I would suggest just destroying the calendar and creating another one with the new settings object. I have no time to investigate this issue in the next few weeks.
from jqm-calendar.
Hi Jan,
that would have created the need to reassociate the events and stuff I added....
I created a pull request which add an id to each day label and through that change it on the fly...
Let me know it ok and if you can merge
Thanks
from jqm-calendar.
Change implemented
from jqm-calendar.
Related Issues (20)
- Issues with jQuery Mobile 1.4.2
- refresh not working HOT 1
- Enable dynamic loading of events
- Taphold HOT 2
- Ignore button when searching for events HOT 2
- Buttons to change year HOT 2
- Disable past dates HOT 8
- eventhandler must contain all events in order to work HOT 5
- Question: What would be involved in upgrading jqm-calendar to JQM 1.4.5? HOT 3
- Wrong next month HOT 20
- Last version does not work (at least on Chrome desktop and mobile) HOT 8
- new Date(2015,09,05,10,30) format shows up 1 month later HOT 1
- Update issue HOT 10
- demo HOT 1
- full year view HOT 3
- Calendar not working in Compiled APP. HOT 1
- Problems to see the correct Date HOT 1
- Display evends in the calendar HOT 2
- Dates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqm-calendar.