Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.