where am i?

This commit is contained in:
arzynik 2012-07-19 08:48:09 -07:00
parent 77eaccdcc8
commit d5145145ce
2 changed files with 10 additions and 7 deletions

View File

@ -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) {

View File

@ -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;
}
} }
} }