This file contains hidden or 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
property numChromeWindows : 0 | |
property ChromePos : {} | |
property ChromeSize : {} | |
property PHPStormPos : 0 | |
property PHPStormSize : 0 | |
property MailPos : 0 | |
property MailSize : 0 | |
property TextualPos : 0 | |
property TextualSize : 0 | |
property AdiumContactsPos : 0 |
This file contains hidden or 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
this.getJSONAndParse = function() { | |
var _self = this; | |
log("made it"); | |
$.getJSON(baseUrl + "/reports/xxx", function(data) { | |
log("made it 2"); | |
log(data); | |
_self.reset(); | |
_self.unitGroupId = $("#unit-group").val(); | |
_self.loadData(data); | |
_self.parseJson(); |
This file contains hidden or 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
/** | |
* Checks the internal class of an Object to determine the "type" | |
* A class can be one of the following values: "Arguments", "Array", "Boolean", "Date", "Error", | |
* "Function", "JSON", "Math", "Number", "Object", "RegExp", "String" | |
* | |
* @param type | |
* @param obj | |
* @return {Boolean} | |
*/ | |
function is(type, obj) { |
This file contains hidden or 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
$con = Propel::getConnection(); | |
$query = 'SELECT * | |
FROM `work_order` a | |
LEFT JOIN ( | |
SELECT *, COUNT(unit_id) | |
AS numberSubmissions | |
FROM `work_order` | |
GROUP BY group_id | |
) AS b | |
ON a.id = b.id |
This file contains hidden or 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
/** | |
* @param string $name | |
* @param string $value | |
* @throws Exception | |
* @return null | |
*/ | |
public function setSetting($name, $value) { | |
if($value === true || $value === "true") | |
$value = 1; | |
if($value === false || $value === "false") |
This file contains hidden or 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
location (/(mypost)[/](.*)|/(myrent)[/](.*)|/(myplace)[/](.*)|/(control)[/](.*)) { | |
default_type text/html; | |
set $app $1; | |
#rewrite (.*)\.php $1 permanent; | |
try_files $app.php/$2 $app/$2 =404; | |
} |
This file contains hidden or 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 filterByRelation($relation, $relationId) { | |
$relationPeer = ucwords($relation) . 'Peer'; | |
return $this->useDocumentRelationQuery() | |
->useDefaultDocumentRelationQuery() | |
->filterByType($relation) | |
->endUse() | |
->addJoin(DocumentRelationPeer::RELATION_ID, $relationPeer::ID, Criteria::LEFT_JOIN) | |
->filterByRelationId($relationId) | |
->endUse(); |
This file contains hidden or 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
$.fn.setupFilterInput = function() { | |
log("setupFilterInput"); | |
return this.find("[placeholder]") | |
.focus(function(event) { | |
if(this.value == $(this).attr("placeholder")) | |
this.value = ""; | |
}).blur(function(event) { | |
if(this.value == "") | |
this.value = $(this).attr("placeholder"); |
This file contains hidden or 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
$.fn.setupFilterInput = function() { | |
log("setupFilterInput"); | |
var $searchX = $(this).parent.find("x-icon"); | |
this.focus(function(event) { | |
if(this.value == $(this).attr("placeholder")) | |
this.value = ""; | |
}).blur(function(event) { | |
if(this.value == "") | |
this.value = $(this).attr("placeholder"); |
This file contains hidden or 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
function DocumentsPager(containerEl) { | |
this.containerEl = containerEl; | |
this.jsonResults = null; | |
this.jsonResultsReady = false; | |
this.template = ""; | |
this.searchQuery = ""; | |
this.loadData = function(jsonResults) { | |
this.jsonResults = jsonResults; |