From 199aedf60a58fed424c3706f45bbac200bf33bc8 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Sat, 28 Apr 2018 15:17:36 +0200 Subject: Dialog(s) for changing restore height --- js/Utils.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js') diff --git a/js/Utils.js b/js/Utils.js index 7cf582b2..fdf24c6b 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -23,3 +23,7 @@ function formatDate( date, params ) { // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString return new Date( date ).toLocaleString( 'en-US', options ); } + +function isNumeric(n) { + return !isNaN(parseFloat(n)) && isFinite(n); +} \ No newline at end of file -- cgit v1.2.3