To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4477

Show
Ignore:
Timestamp:
01/18/12 11:52:41 (4 months ago)
Author:
kerry
Message:

fixed bug with placeholder clicker box
that looks for the choose button url in the correct place for both slots in areas and singleton slots

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.5/web/js/a.js

    r4476 r4477  
    11451145    placeholders.die('click.mediaSlotEnhancements').live('click.mediaSlotEnhancements', function(event){ 
    11461146      var $self = $(this), 
    1147           chooseBtn = $self.closest('.a-slot').find('.a-js-choose-button'); 
     1147          chooseBtn = ($self.closest('.singleton').length) ? $self.closest('.a-area').find('.a-js-choose-button') : $self.closest('.a-slot').find('.a-js-choose-button'); 
    11481148          $self.addClass('in-progress'); 
    11491149      window.location.href = chooseBtn.attr('href'); 
     
    11511151    }); 
    11521152  }; 
    1153  
     1153   
    11541154 
    11551155  /**