diff --git a/debian/changelog b/debian/changelog index 421f8d85..8b5f9dda 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.381-deb8) stable; urgency=low +hedera-web (1.383-deb8) stable; urgency=low * Initial Release. diff --git a/env.php b/env.php index b20e31ba..a8a90868 100644 --- a/env.php +++ b/env.php @@ -10,4 +10,4 @@ const _DEV_MODE = TRUE; const _CONFIG_DIR = __DIR__.'/../../.config'; const _LOG_DIR = '/tmp'; const _DATA_DIR = '/tmp'; - +const _HEDERA_DIR = __DIR__; diff --git a/forms/ecomerce/checkout/checkout.js b/forms/ecomerce/checkout/checkout.js index 89b025e4..38df9c65 100644 --- a/forms/ecomerce/checkout/checkout.js +++ b/forms/ecomerce/checkout/checkout.js @@ -196,8 +196,7 @@ Hedera.Checkout = new Class ,calendarRestrict: function (date) { - return date.getTime () >= this.today.getTime () - && date.getDay () != 0; + return date.getTime () >= this.today.getTime (); } }); diff --git a/hedera-web.php b/hedera-web.php index 90d013e9..746e9f26 100755 --- a/hedera-web.php +++ b/hedera-web.php @@ -4,6 +4,9 @@ @include_once __DIR__.'/env.php'; require_once 'vn-autoload.php'; -$cliApp = new Vn\Lib\CliApp ('hedera-web', __DIR__.'/rest'); +if (!defined ('_HEDERA_DIR')) + define ('_HEDERA_DIR', '/usr/share/hedera-web'); + +$cliApp = new Vn\Lib\CliApp ('hedera-web', _HEDERA_DIR.'/rest'); $cliApp->run (); diff --git a/js/htk/field/calendar.js b/js/htk/field/calendar.js index 0267b514..82e223f1 100644 --- a/js/htk/field/calendar.js +++ b/js/htk/field/calendar.js @@ -174,7 +174,7 @@ module.exports = new Class if (this._restrictFunc) { cell.enabled = this._restrictFunc (cellDate); - cellDate.setTime (cellDate.getTime () + 86400000); + cellDate.setDate (cellDate.getDate () + 1); } } else