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
$('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' | |
}) | |
}); |
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
[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); |
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
<?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( |
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
<?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, |
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
<?php | |
... | |
/* | |
* | |
* Option tests below here. | |
* | |
* | |
*/ |
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
/* | |
* @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)); | |
}); |
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
(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(); |
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
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(); |
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
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(){ |
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
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('*'); |