Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Issue 1617#1701

Closed
gseguin wants to merge 18 commits intojquery-archive:masterfrom
gseguin:issue-1617
Closed

Issue 1617#1701
gseguin wants to merge 18 commits intojquery-archive:masterfrom
gseguin:issue-1617

Conversation

@gseguin
Copy link
Contributor

@gseguin gseguin commented May 25, 2011

Nested lists with same parent text resolve to the same sub-page.

Ghislain Seguin and others added 9 commits May 24, 2011 17:29
Nested lists with same parent text resolve to the same sub-page.
Handle case where page has an id (url), we want to use that as a key in the listCountPerPage dictionary
…broken in latest

- The test case calls changePage() with a hash ("#b"). In our normal processing of clicks/form submits we strip it before calling. The old code did a strip in changePage() just in case, so I added it back in to fix the last bug.
Nested lists with same parent text resolve to the same sub-page.
Handle case where page has an id (url), we want to use that as a key in the listCountPerPage dictionary
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the $.expando thing about? Is that leftover from the previous pull request?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's to use the jQuery internal id as a key for the listCountPerPage hash instead of undefined in case the parentPage does not have an id.

…sue-1617

Conflicts:
	tests/unit/listview/listview_core.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along the lines of the email I sent to you Scott and John ... I think the listCountPerPage increment should be moved out of the each(). What we're really trying to do here is identify the listview on the page. Then we could do something like:

parentListId = parentList.attr("id") || ++listCountPerPage[parentId];

... each(function( i ) {

    listId = list.attr("id") || parentListId + "-" + i;

StevenBlack and others added 8 commits June 2, 2011 23:13
…inging this up to jQuery coding standards. Renamed one memory variable for legibility and clarity.

Signed-off-by: Steven Black <steveb@stevenblack.com>
Nested lists with same parent text resolve to the same sub-page.
Handle case where page has an id (url), we want to use that as a key in the listCountPerPage dictionary
Reformatted changes to code standards
@gseguin gseguin closed this Jun 3, 2011
@gseguin gseguin reopened this Jun 3, 2011
@gseguin gseguin closed this Jun 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants