~scompall/narrativegallery/trunk--2.0

« back to all changes in this revision

Viewing changes to ddi/narrativegallery/browser/narrativegallery.js

  • Committer: Stephen Compall
  • Date: 2011-09-06 23:51:11 UTC
  • Revision ID: scompall@nocandysw.com-20110906235111-7lvqgsqgcb1ozcmx
click first image automatically, marking it as active

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
          scrollable({prev: '.imagesPreviewBoxPrev',
218
218
                      next: '.imagesPreviewBoxNext'}).
219
219
          navigator({navi: '.imagesPreviewBoxInnerBody'});
220
 
    // TODO ensure first item appears "selected"
 
220
    // ensure first item appears "selected"
 
221
    body.find('.imagesPreviewBoxInnerBody .imagesPreviewBoxImage:first')
 
222
          .click();
221
223
    // we need the renderer to complete so we can figure out how tall
222
224
    // the containing box should be
223
225
    $(window).load (function () {