Commits

Stefan Scherfke  committed 9b2f9c8

Version 1.3

  • Participants
  • Parent commits d958f52
  • Tags 1.3

Comments (0)

Files changed (4)

File ChangeLog.txt

 ChangeLog for TeaTimer dashboard widget
 =======================================
 
+2008-12-13 – 1.3:
+ * [FIX] Tea Timer fail with 08 or 09 as timer value
+
 2008-12-08 – 1.2:
  * [NEW] Added link to Tea Timer’s website on the back.
  * [FIX] Localization issue on update panel

File TeaTimer.wdgt/Scripts/Front.js

 
 	event.preventDefault();
 	e = event.target;
-	val = parseInt(e.value);
+	val = parseInt(e.value, 10);
 	if (event.keyCode == 38 && val < 59)
 		e.value = val + 1;
 	else if (event.keyCode == 40 && val > 0)
  * @return: The formatted number.
  */
 Front.prototype.formatTwoDigits = function(number) {
-	number = parseInt(number);
+	number = parseInt(number, 10);
 	if (number < 0 || isNaN(number)) number = 0;
 
 	number = number.toString(10);

File TeaTimer.wdgt/Scripts/Timer.js

 		front.setStartButton(true, false);
 	}
 	else {
-		h = parseInt($('#hours').text());
-		m = parseInt($('#minutes').text());
-		s = parseInt($('#seconds').text());
+		var h = parseInt($('#hours').text(), 10);
+		var m = parseInt($('#minutes').text(), 10);
+		var s = parseInt($('#seconds').text(), 10);
 		m += h * 60;
 		s += m * 60;
 		timer._targetTime = Date.parse(new Date()) + s * 1000;

File releases/TeaTimer-1.3.zip

Binary file added.