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
<?php | |
/** | |
* External logic for a complex search helper - keeps main files cleaner | |
*/ | |
class SqlIntersectHelper{ | |
// Outersects are the same as intersects but data lists without any entries will always be included in the result | |
// Any - Any value from the criterion list must exist at least once in the data list |
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
<?php | |
function IncludeKoTemplates($path) { | |
$files = scandir(dirname(__FILE__).$path); | |
foreach($files as $file_name){ | |
if( in_array($file_name,array(".","..")) ) continue; | |
$template_id = basename($file_name, ".html"); | |
$contents = file_get_contents(dirname(__FILE__). $path . $file_name); | |
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() { | |
var boundElements = []; | |
ko.applyBindings = function(vm, el) { | |
if (boundElements.indexOf(el) > -1) { | |
console.log("dupe", el); | |
} | |
boundElements.push(el); | |
}; |
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
var getScrollbarWidth = function() { | |
var scrollbarWidth; | |
return (function() { | |
if (scrollbarWidth) { | |
return scrollbarWidth; | |
} | |
// Create the measurement node | |
var scrollDiv = document.createElement("div"); |
NewerOlder