where am i?
This commit is contained in:
parent
77eaccdcc8
commit
d5145145ce
@ -250,7 +250,8 @@ class Crunchbutton_Order extends Cana_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function que() {
|
public function que() {
|
||||||
exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' > /dev/null 2>&1 &');
|
//exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' > /dev/null 2>&1 &');
|
||||||
|
exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' &> /dev/null');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function message($type) {
|
public function message($type) {
|
||||||
|
|||||||
@ -48,12 +48,14 @@ var Restaurant = function(id) {
|
|||||||
offset = -(today.getTimezoneOffset()); // @todo: ensure this works on positive tz
|
offset = -(today.getTimezoneOffset()); // @todo: ensure this works on positive tz
|
||||||
|
|
||||||
for (x in hours) {
|
for (x in hours) {
|
||||||
console.log(hours);
|
for (xx in hours[x]) {
|
||||||
var
|
console.log(hours[x]);
|
||||||
open = self.dateFromItem(hours[x][0], offset),
|
var
|
||||||
close = self.dateFromItem(hours[x][1], offset);
|
open = self.dateFromItem(hours[x][xx][0], offset),
|
||||||
if (today >= open && today <= close) {
|
close = self.dateFromItem(hours[x][xx][1], offset);
|
||||||
return true;
|
if (today >= open && today <= close) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user