Skip to content

Instantly share code, notes, and snippets.

@LubosRemplik
Created June 8, 2012 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LubosRemplik/2894500 to your computer and use it in GitHub Desktop.
Save LubosRemplik/2894500 to your computer and use it in GitHub Desktop.
32 $timeout = 5000;
33 $this->Js->get('#nav-hero input');
34 $this->Js->event(
35 'change',
36 $this->Js->request(
37 array('action' => 'contentItem'),
38 array(
39 'update' => '#main .hero',
40 'dataExpression' => 'javascript',
41 'data' => '$(this).val()',
42 'complete' => "setTimeout('navHeroCycle();', $timeout);"
43 )
44 )
45 );
46 $buffer = '';
47 $buffer = "setTimeout('navHeroCycle();', $timeout);";
48 $this->Js->buffer($buffer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment