[icinga-checkins] icinga.org: icinga-web/r1.7: Applied patch for Date.now function refs #2660

git at icinga.org git at icinga.org
Mon Jun 18 16:21:46 CEST 2012


Module: icinga-web
Branch: r1.7
Commit: e4801523183001384920f508a28659a60ebc71b6
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=e4801523183001384920f508a28659a60ebc71b6

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jun 18 16:21:08 2012 +0200

Applied patch for Date.now function refs #2660

---

 app/modules/AppKit/lib/js/AppKitUtil.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/app/modules/AppKit/lib/js/AppKitUtil.js b/app/modules/AppKit/lib/js/AppKitUtil.js
index 27db3b8..3ebeef6 100755
--- a/app/modules/AppKit/lib/js/AppKitUtil.js
+++ b/app/modules/AppKit/lib/js/AppKitUtil.js
@@ -228,6 +228,13 @@ AppKit.util.Config = (function() {
 // Reset the config object
 AppKit.c = AppKit.util.Config.getMap();
 
+// For IE8 and earlier version.
+if (!Date.now) {
+	Date.now = function() {
+		return new Date().valueOf();
+	}
+}
+
 AppKit.util.Date = (function() {
        var time = {};
            time.second = 1;





More information about the icinga-checkins mailing list