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

improve createProgressBar, update homepage, fix css bug #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eykanal
Copy link

@eykanal eykanal commented Mar 22, 2015

  • fixed bug introduced in commit 9d53dfd. In that commit, the author added a reference to id in the createProgressBar function call in a few places (e.g., here). Since the argument order was important, that broke a few things (classes, desc, etc). Changed the function to accept an object and look for object attributes so as to avoid that bug in the future.
  • changed the createProgressBar function so that data is applied directly to the progress bar, rather than to be added to a dataObj object which was then applied to the progress bar. This is useful because we can now more cleanly make this plugin work with other plugins, such as the Bootstrap popovers, by applying data attributes directly to the element. (See sample code in index.html.)
  • changed style.css so that the today class is defined last. Current behavior will only apply color to the current hour/day/week/month cell (e.g., today) if it's a non-holiday weekday. Changed the ordering in the css file so the today cell is always highlighted.
  • updated index.html to:
    • use CDN for jquery
    • to always have example dates close to the current date (otherwise the "go to current date" functionality appears not to work)
    • not make http/https assumptions
    • add data element example
    • improve bootstrap popover example
  • re-minimized function using google closure compiler (http://closure-compiler.appspot.com/home)

- fixed bug introduced in commit 9d53dfd. Added reference to "id" in
  "createProgressBar" function call in a few places. Since the argument
  order was important, that broke a few things (classes, desc, etc).
  Changed the function to accept an object and look for object
  attributes so as to avoid that bug in the future.

- changed data to be applied directly to the progress bar, rather than
  to be added to a "dataObj" object which was then applied to the
  progress bar. This is useful because we can now more cleanly make
  this plugin work with other plugins, such as the Bootstrap popovers,
  by applying data attributes directly to the element. (See sample
  code in index.html.)

- changed style.css so that the "today" element is applied last. Current
  behavior will only apply color to the current hour/day/week/month cell
  if it's a non-holiday weekday. Changed the ordering in the css file
  so it's always applied last.

- updated index.html to:
  * use CDN for jquery
  * to always have example dates close to the current date (otherwise
    the "go to current date" functionality appears not to work)
  * not make http/https assumptions
  * add data element example
  * improve bootstrap popover example

- re-minimized function using google closure compiler
  (http://closure-compiler.appspot.com/home)
@eykanal eykanal mentioned this pull request Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant