This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("select") | |
.focus(function(){ | |
$(this) | |
.data("origWidth", $(this).css("width")) | |
.css("width", "auto"); | |
}) | |
.blur(function(){ | |
$(this) | |
.css("width", $(this).data("origWidth")); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
filetype on | |
" spaces instead of tabs | |
" prefer 2 spaces | |
set softtabstop=2 | |
set tabstop=2 | |
set shiftwidth=2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function send_receipt_to_customer($order, $duplicate = false) { | |
$to = trim($order->billing_address->email); | |
$to = (filter_var($to, FILTER_VALIDATE_EMAIL)) ? $to : false; | |
$to = (Config::get('environment') == Fuel::DEVELOPMENT) ? debugEmailAddress : $to; | |
if($to) | |
{ | |
$subject = ' receipt for your order'; | |
$subject = $duplicate ? 'Duplicate'.$subject : 'A'.$subject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(is_array($status)) | |
{ | |
$or = null; | |
foreach($status as $s) | |
{ | |
$orders->{"{$or}where"}('status', '=', $s); | |
$or = 'or_'; | |
} | |
} |