Countdown, Coming Soon – Countdown & Clock - Version 2.4.8

Version Description

  • Fixed Simple countdown expiration default behavior
  • Fixed Simple countdown timer preview issue during duration change
Download this release

Release Info

Developer adamskaat
Plugin Icon 128x128 Countdown, Coming Soon – Countdown & Clock
Version 2.4.8
Comparing to
See all releases

Code changes from version 2.4.7 to 2.4.8

assets/js/YcdSimpleCountdown.js CHANGED
@@ -4,6 +4,7 @@ function YcdSimpleCountdown()
4
  this.seconds = 0;
5
  this.id = 0;
6
  this.doubeleDigits = false;
 
7
  this.countdownContainer = jQuery('.ycd-simple-container');
8
  }
9
 
@@ -92,7 +93,7 @@ YcdSimpleCountdown.prototype.changeDateDuration = function() {
92
  }
93
  var that = this;
94
  var countdown = this.countdownContainer;
95
- types.bind('change', function() {
96
  var val = jQuery(this).val();
97
 
98
  if (val == '') {
@@ -287,7 +288,7 @@ YcdSimpleCountdown.prototype.countdown = function()
287
  // If the count down is finished, write some text
288
  distance = that.getFilteredDistance();
289
 
290
- if (distance <= 0 && that.countdownRun) {
291
  clearInterval(x);
292
  that.endBehavior(countdownWrapper, that.options);
293
  return;
@@ -326,11 +327,12 @@ YcdSimpleCountdown.prototype.countdown = function()
326
  that.seconds -= 1000;
327
  }
328
  };
329
- runCountdown();
330
 
 
331
  var x = setInterval(function() {
332
  runCountdown();
333
  }, 1000);
 
334
  };
335
 
336
  YcdSimpleCountdown.prototype.getFilteredDistance = function() {
4
  this.seconds = 0;
5
  this.id = 0;
6
  this.doubeleDigits = false;
7
+ this.timerInterval;
8
  this.countdownContainer = jQuery('.ycd-simple-container');
9
  }
10
 
93
  }
94
  var that = this;
95
  var countdown = this.countdownContainer;
96
+ types.unbind('change').bind('change', function() {
97
  var val = jQuery(this).val();
98
 
99
  if (val == '') {
288
  // If the count down is finished, write some text
289
  distance = that.getFilteredDistance();
290
 
291
+ if (distance <= -1 && that.countdownRun) {
292
  clearInterval(x);
293
  that.endBehavior(countdownWrapper, that.options);
294
  return;
327
  that.seconds -= 1000;
328
  }
329
  };
 
330
 
331
+ clearInterval(this.timerInterval);
332
  var x = setInterval(function() {
333
  runCountdown();
334
  }, 1000);
335
+ this.timerInterval = x;
336
  };
337
 
338
  YcdSimpleCountdown.prototype.getFilteredDistance = function() {
config/config.php CHANGED
@@ -76,8 +76,8 @@ class YcdCountdownConfig
76
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
77
  self::addDefine('YCD_AJAX_SUCCESS', 1);
78
  self::addDefine('YCD_TABLE_LIMIT', 15);
79
- self::addDefine('YCD_VERSION_PRO', 2.28);
80
- self::addDefine('YCD_VERSION', 2.47);
81
  self::addDefine('YCD_FREE_VERSION', 1);
82
  self::addDefine('YCD_SILVER_VERSION', 2);
83
  self::addDefine('YCD_GOLD_VERSION', 3);
@@ -85,13 +85,13 @@ class YcdCountdownConfig
85
  self::addDefine('YCD_EXTENSION_VERSION', 99);
86
  require_once(dirname(__FILE__).'/config-pkg.php');
87
 
88
- $versionText = '2.4.7';
89
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
90
- $versionText = '2.2.8';
91
  }
92
  self::addDefine('YCD_VERSION_TEXT', $versionText);
93
- self::addDefine('YCD_LAST_UPDATE', 'Nov 12');
94
- self::addDefine('YCD_NEXT_UPDATE', 'Nov 20');
95
  }
96
 
97
  public static function displaySettings()
76
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
77
  self::addDefine('YCD_AJAX_SUCCESS', 1);
78
  self::addDefine('YCD_TABLE_LIMIT', 15);
79
+ self::addDefine('YCD_VERSION_PRO', 2.29);
80
+ self::addDefine('YCD_VERSION', 2.48);
81
  self::addDefine('YCD_FREE_VERSION', 1);
82
  self::addDefine('YCD_SILVER_VERSION', 2);
83
  self::addDefine('YCD_GOLD_VERSION', 3);
85
  self::addDefine('YCD_EXTENSION_VERSION', 99);
86
  require_once(dirname(__FILE__).'/config-pkg.php');
87
 
88
+ $versionText = '2.4.8';
89
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
90
+ $versionText = '2.2.9';
91
  }
92
  self::addDefine('YCD_VERSION_TEXT', $versionText);
93
+ self::addDefine('YCD_LAST_UPDATE', 'Dec 16');
94
+ self::addDefine('YCD_NEXT_UPDATE', 'Dec 29');
95
  }
96
 
97
  public static function displaySettings()
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin by Adam skaat
5
- * Version: 2.4.7
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin by Adam skaat
5
+ * Version: 2.4.8
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 6.1
6
- Stable tag: 2.4.7
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -67,6 +67,10 @@ Yes you can, we have Circle and Flipclock countdown popups.
67
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
68
 
69
  == Changelog ==
 
 
 
 
70
  = 2.4.7 =
71
  * Fixed Countdown translation warnings
72
  * Improved Display Rules section
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 6.1
6
+ Stable tag: 2.4.8
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
67
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
68
 
69
  == Changelog ==
70
+ = 2.4.8 =
71
+ * Fixed Simple countdown expiration default behavior
72
+ * Fixed Simple countdown timer preview issue during duration change
73
+
74
  = 2.4.7 =
75
  * Fixed Countdown translation warnings
76
  * Improved Display Rules section