Skip to content

Instantly share code, notes, and snippets.

$('form#search-search').submit(function(e){
$.post("/admin/catalogmanager/find", $(this).serializeArray(), function(result){
//trying to get result['html'] but its "undefined", but a console.log(result) shows a html: 'content'
})
});
[nlundsten@localhost zendframework]$ git diff 1b43cd688b 570778c77eb7fbc6a9c80 library/Zend/Paginator/Adapter/DbSelect.php
diff --git a/library/Zend/Paginator/Adapter/DbSelect.php b/library/Zend/Paginator/Adapter/DbSelect.php
index 92c7b53..c9ade72 100644
--- a/library/Zend/Paginator/Adapter/DbSelect.php
+++ b/library/Zend/Paginator/Adapter/DbSelect.php
@@ -103,22 +103,15 @@ class DbSelect implements AdapterInterface
}
$select = clone $this->select;
- $select->reset(Select::COLUMNS);
<?php
//speckcatalog product mapper
public function getByCategoryId($categoryId, $siteId=1)
{
$table = $this->getTableName();
$linker = 'catalog_category_product';
$joinString = $linker . '.product_id = ' . $table . '.product_id';
$where = array(
<?php
//speckcatalog product mapper
public function getByCategoryId($categoryId, $siteId=1)
{
$table = $this->getTableName();
$linker = 'catalog_category_product';
$joinString = $linker . '.product_id = ' . $table . '.product_id';
$where = array(
'category_id' => $categoryId,
<?php
...
/*
*
* Option tests below here.
*
*
*/
/*
* @province <select> element with opgtroups of provinces separated by country
* @country <select> element
*/
function countryProvinces(province, country)
{
//zf2 select options dont allow non-standard attributes.. hooray.
opts = $(province).children('optgroup').each(function(){
$(this).attr('data-country_code', $(this).children().val().substring(0,2));
});
(function($) {
function countryProvinces(province, country)
{
//zf2 select options dont allow non-standard attributes.. hooray.
opts = $(province).children('optgroup').each(function(){
$(this).attr('data-country_code', $(this).children().val().substring(0,2));
});
$(province).data('options', opts);
$(province).children('optgroup').remove();
function filterProvinces(element, countryCode) {
$(element).val(0);
optGroups = $(element).data('options');
$(optGroups).each(function(){
var match = false
if ($(this).data('country_code') == countryCode) {
$(element).append($(this));
}
})
$(element).find('optgroup').remove();
function filterProvinces(element, countryCode) {
$(element).val(0);
$(element).find('optgroup').remove();
options = $(element).data('options');
//need to get the maching option by countrycode (id)
//$(element).append(html);
}
$(document).ready(function(){
protected function triggerListeners($event, EventInterface $e, $callback = null)
{
$responses = new ResponseCollection;
$listeners = $this->getListeners($event);
// Add shared/wildcard listeners to the list of listeners,
// but don't modify the listeners object
$sharedListeners = $this->getSharedListeners($event);
$sharedWildcardListeners = $this->getSharedListeners('*');