Comments (6)
Thank you for using the plugin and filing this issue. This contributes to the overall improvement of this plugin :) Can you please provide the exact steps to reproduce the issue? Also can you keep your console open while performing the steps and share the console contents in case you see some error in there as well?
from timer.jquery.
Example:
$(function (e) { $('#DT').timer({ format: '%H:%M:%S' }); $(document).on('click','#bnt', function(){ $('#DT').timer('reset'); }); }); <p> <div id="DT"> </div> </p> <button type="button" id="bnt" > Reset Timer</button>
from timer.jquery.
I got doing a "workaround". I´m just modify "resetTimer" function.
function resetTimer(timer) {
var element = timer.element;
stopTimerInterval(timer);
timer.options.removeTimer.bind(timer).call();
$(element).data('plugin_' + pluginName, 0);
$(element).data('seconds', 0);
$(element).data('state', 0);
startTimerInterval(timer);
//stopTimerInterval(timer);
//$(element).data('seconds', 0);
//$(element).data('totalSeconds', 0);
//$(element).data('startTime', 0);
//$(element).data('state', TIMER_STOPPED);
$(element).data('duration', timer.options.duration);
timer.options.resetTimer.bind(timer).call();
}
from timer.jquery.
Thanks for fixing it, this looks good! Can you please submit a PR for this?
from timer.jquery.
I think something seems funky. I was updating the Develop branch locally to match the recent merges in Master and it shows as if your PR got merged! Can you please check if your changes are in there? Also another thing is, I dont see a fork of this repo in your Github. Can you please tell me how you created the PR?
from timer.jquery.
Fixed in #63
Thanks to @AlexAraujoBr
from timer.jquery.
Related Issues (20)
- how to write the script two functions
- countdown timer shows negative time.
- Get %H %M %S HOT 4
- Blur event resumes the timer again HOT 1
- start time HOT 2
- Causing an Undefined error HOT 3
- karma start throws error
- clear message after time up? HOT 1
- Add links [gh-pages]
- Countdown timer with negative remaining time HOT 1
- Publish as WebJar HOT 4
- get seconds as ticks HOT 2
- hidden property not working HOT 3
- Timer Keeps on running if provided seconds are already greater than duration HOT 1
- Timer Greater than 24 Hours HOT 1
- Countdown timer does'nt start again from 0 HOT 2
- Changing the language of the timer HOT 6
- The callback function is never executed
- [bug] callback is actually a callbefore ? HOT 1
- timer state has "running" or "paused" - and that's it 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 timer.jquery.