From fca490e87dfb59979adcf1be700e97244f8e533a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sun, 25 May 2014 09:39:28 +0200 Subject: [PATCH] tape:js ie cache --- app/Controller/HomeController.php | 6 +++--- app/webroot/js/dreamjob.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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);