Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify start of week #39

Closed
davisdude opened this issue Feb 21, 2019 · 10 comments · Fixed by #175
Closed

Specify start of week #39

davisdude opened this issue Feb 21, 2019 · 10 comments · Fixed by #175
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@davisdude
Copy link

davisdude commented Feb 21, 2019

Would it be possible to add an option to specify which day of the week to use as the start?

For instance, maybe something like:

src="...&skin=...&startdow=sun" 

We're using Polar.sh so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work. Fund with Polar
@niccokunzmann
Copy link
Owner

Yes, it is possible. How much are you willing to invest?
Documentation: https://docs.dhtmlx.com/scheduler/configuration.html#schedulerconfig

@niccokunzmann
Copy link
Owner

Would you need Monday or Sunday or should this be any day possible?

@davisdude
Copy link
Author

I think only Sunday and Monday would be needed.

@niccokunzmann
Copy link
Owner

@davisdude I will not do it until I see use for me. However, I am willing to help you get what you need.

To have this functionality for you and your server, fork it, add the one line from the documentation to make it Sunday, and click the Heroku button. It is one line of programming.

If you like it and you like to share it with others, It should be about 2 lines of JavaScript, 2 lines of text and 8 lines of HTML.

@garbled1
Copy link

I'm trying to understand this answer. What file do I add that line to? I'm not running it in heroku, I'm running locally via a gunicorn, so do I just need to edit one of the static js files?

@TylerB260
Copy link

@garbled1 Late response, but I just made this change myself. It's in the open-web-calendar/static/js/configure.js file.

It's in the loadCalendar function, I edited mine to read this way:
image

Just be sure to clear your cache after making the change.

@IBC-IT
Copy link

IBC-IT commented Nov 8, 2021

Trying to get this working using https://open-web-calendar.herokuapp.com
Is this not possible using the web interface?

@niccokunzmann niccokunzmann added enhancement New feature or request good first issue Good for newcomers labels Aug 14, 2022
@niccokunzmann
Copy link
Owner

That looks like something that would be quote easy to implement. If someone likes to do it.

  1. Add a choice to the web interface
  2. add the parameter to the URL
  3. at the line specified by @TylerB260 here, read the parameter and write it into the code. Other parameters have been parsed before so that should be more copy&paste

@niccokunzmann
Copy link
Owner

See also #138 - the idea is to have the day moving as the current day.

@niccokunzmann
Copy link
Owner

niccokunzmann commented Mar 30, 2023

Thanks everyone and thanks for a donation. Choosing between Monday and Sunday is included in the version 1.6 as an option to choose. This should go live on my instance in a few hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants