Skip to content

Commit

Permalink
Update Grid.php
Browse files Browse the repository at this point in the history
Fix checkboxes in grid
  • Loading branch information
buric committed Nov 2, 2015
1 parent ea182dd commit b12ce72
Showing 1 changed file with 8 additions and 9 deletions.
@@ -1,13 +1,10 @@
<?php

/**
* @category Inchoo
* @package Inchoo Featured Products
* @author Domagoj Potkoc, Inchoo Team <web@inchoo.net>
* @modified Mladen Lotar <mladen.lotar@surgeworks.com>, Vedran Subotic <vedran.subotic@surgeworks.com>
* @author Zvonimir Buric
*/
class Inchoo_FeaturedProducts_Block_Adminhtml_Edit_Grid extends Mage_Adminhtml_Block_Widget_Grid {

class Inchoo_FeaturedProducts_Block_Adminhtml_Edit_Grid extends Mage_Adminhtml_Block_Widget_Grid
{
public function __construct() {
parent::__construct();

Expand Down Expand Up @@ -243,7 +240,7 @@ private function _prependHtml() {
};
document.observe("dom:loaded", function() {
var initCheckboxes = function() {
var everycheckbox = $$("#inchoo_featured_products_table tbody input.checkbox");
Expand All @@ -264,7 +261,7 @@ private function _prependHtml() {
}
});
});
}
function categorySubmit(url) {
Expand Down Expand Up @@ -336,9 +333,11 @@ private function _appendHtml() {
$("in_featured_products").value = checkBoxes.toQueryString();
});
initCheckboxes();
</script>';

return $html;
}

}
}

0 comments on commit b12ce72

Please sign in to comment.