-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changelog jQuery plugin #2
Comments
new LESS structure is stable, merging into master
I build a simple demo to populate the list with dummy data cc: @catalinmiron |
Pull request? |
- Unbinds events - Stops interval timer - Removes DOM
Should we add an option to configure the text on the Reload button as well? I'm thinking that users might want to change it to something else like Relaunch or Refresh. |
Sure. Maybe allow HTML here as well, to be able to insert any icon, etc. On Fri, May 23, 2014 at 2:28 PM, Valentin Radulescu <
Best regards, |
Need
The easiest way to integrate the changelog on the client-side is through a jQuery plugin
Deliverables
The jQuery plugin will support the following options:
The jQuery plugin will have the following methods:
Solution
We need to have a
container
which in the first place will be empty, this will be targeted by the plugin.Second, we need to make a jQuery plugin, which will have a method called
checkForUpdates
. Given options set by the user(see above), it will be able to poll GitHub and generate the appropriate DOM structure when issues are closed.For a given repository (
gitHubRepo
) and a common label set undergithubParams.labels
this method will request the issues that were closed since a given timestamp. The timestamp will be set when the plugin is first initialized on acontainer
and reset after new updates are received.Prerequisites
TODO
checkForUpdates
methoddestroy
method that unbinds event listeners and removes the changelog DOMcc: @skidding @RadValentin
The text was updated successfully, but these errors were encountered: