Skip to content

Commit

Permalink
save button return to product list
Browse files Browse the repository at this point in the history
prevent load js file in other controllers
  • Loading branch information
Danoosh committed Jan 15, 2017
1 parent 2aad982 commit 4819e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions isaveresolve.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class iSaveResolve extends Module
public function __construct(){
$this->name = 'isaveresolve';
$this->tab = 'tab';
$this->version = '1.0';
$this->version = '1.2';
$this->bootstrap = true;
$this->author = 'iPresta.ir';

Expand Down Expand Up @@ -93,7 +93,9 @@ public function getContent()

public function hookDisplayBackofficeHeader()
{
$this->context->controller->addJS($this->_path.'js/admin.js');
if (Tools::getValue('controller') != 'AdminProducts')
return false;
$this->context->controller->addJS($this->_path.'js/admin2.js');
}


Expand Down
File renamed without changes.

0 comments on commit 4819e0e

Please sign in to comment.