Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //js
- setInterval(function(){
- $('.js-refresh').each(function(){
- var link = $(this).attr('href');
- $.getJSON(link);
- });
- },5000);
- //handle
- public function handleRefreshChat()
- {
- if($this->isAjax()) {
- $this->invalidateControl('chater');
- } else {
- $this->flashMessage('no',self::$confirm);
- $this->redirect('this');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement