Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //js
  2. setInterval(function(){
  3. $('.js-refresh').each(function(){
  4. var link = $(this).attr('href');
  5. $.getJSON(link);
  6. });
  7. },5000);
  8.  
  9. //handle
  10. public function handleRefreshChat()
  11. {
  12. if($this->isAjax()) {
  13. $this->invalidateControl('chater');
  14. } else {
  15. $this->flashMessage('no',self::$confirm);
  16. $this->redirect('this');
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement