Giter Site home page Giter Site logo

calendarview's People

Contributors

jsmecham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

calendarview's Issues

README.markdown incorrect

Does not instruct you to use prototype.js which is required, also uses function CalendarView which cannot be found.

Define the start of the week

We germans like the monday for the first Day of the week, so I changed the Arrays for the Daynames and

// Calculate the first day to display (including the previous month)
date.setDate(1)
date.setDate(-(date.getDay()) + 2) <== here was a + 1

What we need is a config-variable (actually I didn't understand how to bring variables into the code) and a connection between the array key and this variable... And we need to bring this variable to the line of code pasted above

mark Dates in the past and the future

To style days in the past and the future, I needed classes for it.

Lines 362++

// Today, past and future
if (date.getFullYear() == thisYear && date.getMonth() == thisMonth && day == thisDay) {
cell.addClassName('today')
} else if (date.getFullYear() >= thisYear && date.getMonth() >= thisMonth && day >= thisDay) {
cell.addClassName('futureDay')
} else {
cell.addClassName('pastDay')
}

Navigation buttons looking strange.

Hi. I guess this is more of a patch than an issue.
I downloaded your project, and found that It looked really strange when simply embedded (without the patch). All the navigation buttons where pushed to the left in the parenting tr element. This was fixed by adding this code in my css (it might need a more precise definition to avoid collision):

div.calendar td.button {
display: table-cell;
}

I hope this will help others.

Best regards
Emil

closeHandler Function example

I'm trying to use the closeHandler parameter to run my function after the calendar pop-up closes. When I run it like this:
Calendar.setup(
{
dateField: 'txtDeparture',
triggerElement: 'departureBtn',
closeHandler: 'updateFunc'
}
)

I get this error in Firebug:
this.closeHandler is not a function
http://www.mywebsite.com/js/calendarview.js
Line 495

When I put a watch on that line, I see that "closeHandler" equals my function name but I think there might be a problem in the way I'm setting up that parameter. I can run my function through an onblur event and get the results I expect so I don't think it's my function causing the issue. Any clarification you can provide would be welcome.

Todd McClintic
http://www.mcclinticdesign.com

code needs to terminate with ; for packing and minifying

Currently all the lines in the the main library are not terminated in semi-colon, thus making it's impossible to minify and pack the javascript using asset_packager.

I have a semi-colonized version of the script, but it has several modifications so I can't push it back - yet. Anyhow, I want to bring this issue up for future fix.

Event Listener & zIndex issue when using Modalbox.

First Off: Big fan of the library!

I'm having issues using the calendar view when the input element and/or trigger element are displayed from within a Modalbox.

The only way I was able to get the popup calendar to display is by setting the zIndex on the container to be greater than that of the modalbox from within the showAt method of Calendar. Setting the zIndex solves that portion of the issue.

The other issue seems to be with actually capturing the event when it's triggered. Modalbox has two methods of displaying a modalbox: Ether by displaying a hidden div as it's contents, or by using ajax to pull content for use. In the former, the event is never triggered when I click the input box contained within the modal window. But, if I set the div display to block & click the input outside of the modalwindow it works fine.

Again, thanks for a great library. If you need any further information let me know. I was able to create a workaround by creating a simple method in Calendar which can be called directly to display the calendar popup, which willows me to call the method onClick, rather than adding an event listener after the fact.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.