Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> Effects don't work on event in JS helper.
atlet
Posted: Aug 16 2011, 12:29 PM
Quote Post


Advanced Member
***

Group: Members
Posts: 106
Member No.: 227
Joined: 17-February 08



I have this code and it's working fine:
CODE
$this->Js->get('#dialog')->event('dialogclose', $this->Js->request(array(
           'action' => 'index'), array(
           'async' => true,
           'update' => '#content'
       )));


But, if I add effects it stops working, here is the code:
CODE
$this->Js->get('#dialog')->event('dialogclose', $this->Js->request(array(
           'action' => 'index'), array(
           'async' => true,
           'update' => '#content',
           'before' => $this->Js->get('#busy-indicator')->effect('fadeIn', array('buffer' => false)),
           'complete' => $this->Js->get('#busy-indicator')->effect('fadeOut', array('buffer' => false))
       )));


I'm doing something wrong or just event don't support vallbacks? As I see in cakebook it must support.


--------------------
Quibi - online invoicing app made with CakePHP, Program za fakturiranje | Online dating made with CakePHP => Zasebni stiki
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Disclaimer:
This forum is in no way affiliated with the Cake Software Foundation
The CakePHP name and icon is a trademark of the Cake Software Foundation


Lo-Fi Version