Changeset 76

Show
Ignore:
Timestamp:
02/24/06 14:58:03 (3 years ago)
Author:
fabien
Message:

fixed double javascript call bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/apps/frontend/config/view.yml

    r72 r76  
    1212  stylesheets:    [main, layout] 
    1313 
    14   javascripts:    [sf/js/prototype
     14  javascripts:    [/sf/js/prototype/prototype.js
    1515 
    1616  has_layout:     on 
  • trunk/apps/frontend/lib/myTagFilter.class.php

    r69 r76  
    2121  public function execute ($filterChain) 
    2222  { 
    23     static $loaded; 
    24  
    2523    // execute this filter only once 
    26     if (sfConfig::get('app_universe') && !isset($loaded)) 
     24    if (sfConfig::get('app_universe') && $this->isFirstCall()) 
    2725    { 
    28       // load the filter 
    29       $loaded = true; 
    30  
    3126      // is there a tag in the hostname? 
    3227      $request  = $this->getContext()->getRequest(); 
     
    4035 
    4136        // add a custom stylesheet 
    42         $request->setAttribute('app/tag_filter', $tag, 'helper/asset/auto/stylesheet'); 
     37        $this->getContext()->getResponse()->addStylesheet($tag); 
    4338 
    4439        // is the tag a culture? 
  • trunk/apps/frontend/modules/user/templates/loginSuccess.php

    r69 r76  
    5454  if (Element.visible('new_account')) 
    5555  { 
    56     Effect.BlindUp('new_account'); 
     56    ".visual_effect('BlindUp', 'new_account')." 
    5757    $('login_form').action = '".url_for('@login')."'; 
    5858  } 
    5959  else 
    6060  { 
    61     Effect.BlindDown('new_account'); 
     61    ".visual_effect('BlindDown', 'new_account')." 
    6262    $('login_form').action = '".url_for('@add_account')."'; 
    6363  }