Permalink
Commits on Jul 17, 2015
  1. Merge pull request #33 from jrochkind/deep_options_extend

    Stackview init, DEEP extend options with defaults
    anniejocain committed Jul 17, 2015
Commits on Jul 8, 2015
  1. Stackview init, DEEP extend options with defaults

    This lets you over-ride just one element of a sub-object option,
    and inherit the defaults for the others, like:
    
       $("something").stackview({
          book: {
            max_pages: 100
          },
          etc
        });
    
    Override just book.max_pages, while accepting defaults
    for other book.*.
    
    Good idea, I think?  It does mean that in change to before, if you
    wanted to ERASE certain defaults, it's harder, they don't get
    erased just by leaving them out of your init params. But I don't
    think that's ever a sensible thing to do.
    jrochkind committed Jul 8, 2015
Commits on Jun 29, 2015
  1. Merge pull request #32 from jrochkind/remove_plain

    remove plain.js I added accidentally, was meant for local use only
    anniejocain committed Jun 29, 2015
Commits on Jun 22, 2015
Commits on Jun 19, 2015
  1. Merge pull request #31 from jrochkind/fix_stack_pages_after

    Fix styling of .stack-pages:after
    anniejocain committed Jun 19, 2015
  2. Merge pull request #28 from jrochkind/all_types_respect_link

    Make all types respect linking to item.link
    anniejocain committed Jun 19, 2015
  3. Merge pull request #27 from jrochkind/soundrecording_title_overflow

    prevent soundrecording title from overflowing...
    anniejocain committed Jun 19, 2015
  4. Merge pull request #26 from jrochkind/serial_avoid_overflow

    Serial .spine-title width needs to be reduced
    anniejocain committed Jun 19, 2015
Commits on Jun 16, 2015
  1. Fix styling of .stack-pages:after

    The new styling matches what I reverse engineered from
    the stacklife demo, and has slightly different border
    color/width/style then was actually in the stackview repo.
    
    What was in stacklife demo looks a lot better. So this PR.
    
    Is stacklife using a fork of this stackview code? Possibly
    with various improvements? Is there any easy way for me to diff
    between what stacklife is actually using and stackview, and see
    if there are any other missing improvements?
    jrochkind committed Jun 16, 2015
Commits on Jun 9, 2015
  1. Make all types respect linking to item.link

    webpage, videofilm, and soundrecording each used their own
    stacklife-backend-specific methods of assigning the href
    in the item link.
    
    For general use, it makes more sense for all types to respect
    the common item.link.  I think I added it in a way that will
    be backwards compatible, the other behavior is still there
    if item.link is undefined and/or other special attributes are,
    depending on the prior implementation. But I don't have an easy
    way to test with your existing backend to ensure my assumptions
    about backwards-compat were correct.
    jrochkind committed Jun 9, 2015
Commits on Jun 8, 2015
  1. prevent soundrecording title from overflowing...

    ...out of graphic. Modelled it on what book type does, add
    a CSS right to provide spacing, like book has. After this change,
    titles no longer overflow past graphic -- sometimes they do
    go under the date label, which I think is fine or even as desired.
    jrochkind committed Jun 8, 2015
  2. Serial .spine-title width needs to be reduced

    By 15px, to take account of the left:15px. Before this change,
    long serial titles go out of the bounds they are meant to
    in the graphic.
    jrochkind committed Jun 8, 2015
Commits on Jun 5, 2015
  1. new lib css file

    anniejocain committed Jun 5, 2015
  2. Merge pull request #24 from jrochkind/hide_empty_spine_date

    Hide empty .spine-date
    anniejocain committed Jun 5, 2015
  3. Merge pull request #23 from jrochkind/generic-decoration

    generic-decoration mixin with .item-colors class
    anniejocain committed Jun 5, 2015
Commits on Jun 4, 2015
  1. Hide empty .spine-date

    If no date value is given, previously you still get a spine date
    label showing, but blank.
    
    After this change, the spine date label is not there, hidden with
    display-none.
    jrochkind committed Jun 4, 2015
Commits on Jun 2, 2015
  1. generic-decoration mixin with .item-colors class

    One challenge in creating a local 'type' display is getting
    the proper heatmap colors in edge and top. Existing types all
    use their own custom classes, which need to be included in the
    decorations mixin to set appropriate per-heatmap colors.
    
    We want to be able to add a new type without having to edit
    the decorations mixin.
    
    So this change adds a generic .item-colors class that will have
    appropriate colors for the current heatmap. A custom type can
    use this class, already provided, instead of having to somehow
    get it's own classes into the decorations mixin.
    jrochkind committed Jun 2, 2015
Commits on May 27, 2015
  1. new min js

    anniejocain committed May 27, 2015
  2. Merge pull request #22 from jrochkind/fix_double_encoded_query

    Fix double-encoded query
    anniejocain committed May 27, 2015
  3. Merge pull request #21 from jrochkind/tmpl_trim_leading_space

    Trim leading whitespace from tmpl strings
    anniejocain committed May 27, 2015
  4. Fix double-encoded query

    In `loc_sort_order` mode, the query range was getting double-encoded,
    eg:
    
        &query=%5B95%2520TO%2520105%5D
    
    This is because the string was
    [produced with encoded
    literals](https://github.com/harvard-lil/stackview/blob/f1bd956b3304c414bd66cadd07006641ef47d7c6/src/js/jquery.stackview.base.js#L98),
    but then [passed to
    $.param](https://github.com/harvard-lil/stackview/blob/f1bd956b3304c414bd66cadd07006641ef47d7c6/src/js/jquery.stackview.base.js#L138)
     which encoded it again.
    
    This problem does not exist in the stacklife demo, I'm guessing
    stacklife is using a fork of stackview which already has this bug
    fixed?
    
    At any rate, after this patch, query range string looks like this:
    
        &query=%5B95+TO+105%5D
    
    Which matches how it looks in the stacklife demo.
    jrochkind committed May 27, 2015
Commits on May 26, 2015
  1. Trim leading whitespace from tmpl strings

    JQuery 1.9+ has trouble with leading whitespace when creating
    DOM from jQuery:
    
         // Bad in 1.9+ :
         $("    <div></div>")
    
         // Fine everywhere:
         $("<div></div>")
    
    But the existing tmpl function was creating HTML strings with leading
    whitespace. Fix in tmpl() implementation to trim it, jQuery is happy
    again.
    
    Fixes #17
    
    This PR also includes a newly generated lib/jquery.stackview.min.js
    That's messy, if multiple PR's exist at once there are going to be
    conflicts, but I don't see any other way to do it if the generated
    minimized js is in the repo.
    jrochkind committed May 26, 2015
Commits on Aug 11, 2014
  1. Fix examples page link

    anniejocain committed Aug 11, 2014
Commits on Mar 18, 2013
  1. Update link to project page

    anniejocain committed Mar 18, 2013
Commits on May 8, 2012
  1. changed GitHub fork ribbon

    anniejocain committed May 8, 2012
Commits on Apr 10, 2012
  1. Ministack

    imakewebthings committed Apr 10, 2012
Commits on Apr 9, 2012
Commits on Apr 2, 2012
Commits on Mar 19, 2012
  1. minor CSS fix on ribbon

    anniejocain committed Mar 19, 2012