diff --git a/app/Controller/HomeController.php b/app/Controller/HomeController.php index 9ebbf34..3de7a01 100755 --- a/app/Controller/HomeController.php +++ b/app/Controller/HomeController.php @@ -32,9 +32,9 @@ class HomeController extends AppController { public function home() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); - $c = $this->MiconwareSession->getCompany(); - if (!empty($c)) - return $this->redirect(array('controller'=>'home','action' => 'company')); + $c = $this->MiconwareSession->getCompany(); + if (!empty($c)) + return $this->redirect(array('controller'=>'home','action' => 'company')); $openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(), 'order'=>'DreamjobJobOpening.id DESC','limit'=> self::$opening_limit)); $this->set('openings',$openings); diff --git a/app/webroot/js/dreamjob.js b/app/webroot/js/dreamjob.js index 2743c42..3d24764 100755 --- a/app/webroot/js/dreamjob.js +++ b/app/webroot/js/dreamjob.js @@ -238,7 +238,7 @@ var global_load = null; if uncomment the above line, html5 nonsupported browers won't change the url but will display the ajax content; if commented, html5 nonsupported browers will reload the page to the specified link. */ - $.ajax({url: pageurl, data: data, type: typemethode, success: function(data) { + $.ajax({url: pageurl, cache: false, data: data, type: typemethode, success: function(data) { setContent(data, back, tab, backignore); }, error: function(data) { setContentError(data, back, tab);