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

View File

@ -48,12 +48,14 @@ var Restaurant = function(id) {
offset = -(today.getTimezoneOffset()); // @todo: ensure this works on positive tz
for (x in hours) {
console.log(hours);
var
open = self.dateFromItem(hours[x][0], offset),
close = self.dateFromItem(hours[x][1], offset);
if (today >= open && today <= close) {
return true;
for (xx in hours[x]) {
console.log(hours[x]);
var
open = self.dateFromItem(hours[x][xx][0], offset),
close = self.dateFromItem(hours[x][xx][1], offset);
if (today >= open && today <= close) {
return true;
}
}
}