// Improve details action in BO ...

This commit is contained in:
rMalie
2012-01-18 16:37:00 +00:00
parent a795091eec
commit 82ca2bb145
7 changed files with 126 additions and 246 deletions
@@ -79,10 +79,9 @@ class AdminAttributesGroupsControllerCore extends AdminController
* method call when ajax request is made with the details row action
* @see AdminController::postProcess()
*/
public function ajaxProcess()
public function ajaxProcessDetails()
{
// test if an id is submit
if (($id = Tools::getValue('id')) && Tools::isSubmit('id'))
if (($id = Tools::getValue('id')))
{
$this->table = 'attribute';
$this->className = 'Attribute';
@@ -150,9 +149,9 @@ class AdminAttributesGroupsControllerCore extends AdminController
$helper->bulk_actions = $this->bulk_actions;
$content = $helper->generateList($this->_list, $this->fieldsDisplay);
$this->content = Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
echo Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
exit;
}
}
/**
@@ -91,9 +91,8 @@ class AdminFeaturesControllerCore extends AdminController
* method call when ajax request is made with the details row action
* @see AdminController::postProcess()
*/
public function ajaxProcess()
public function ajaxProcessDetails()
{
// test if an id is submit
if (($id = Tools::getValue('id')))
{
$this->table = 'feature_value';
@@ -143,7 +142,8 @@ class AdminFeaturesControllerCore extends AdminController
$helper->bulk_actions = $this->bulk_actions;
$content = $helper->generateList($this->_list, $this->fieldsDisplay);
$this->content = Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
echo Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
exit;
}
}
+2 -3
View File
@@ -196,10 +196,9 @@ class AdminTabsControllerCore extends AdminController
* method call when ajax request is made with the details row action
* @see AdminController::postProcess()
*/
public function ajaxProcess()
public function ajaxProcessDetails()
{
// test if an id is submit
if (($id = Tools::getValue('id')) && Tools::isSubmit('id'))
if (($id = Tools::getValue('id')))
{
// override attributes
$this->display = 'list';