Closed hubipe closed 10 years ago
In history.ajax is selector for finding all snippets on page $('[id^="snippet--"]'), but when any snippet is placed inside component, id is generated as snippet-{componentName}-{snippetName}. Therefore no snippets in components are updated when back button is pressed. Code was added in https://github.com/vojtech-dobes/nette.ajax.js/commit/29acff053c0b2cc93b26723cd5f09f849076d5ce#diff-f59d393841fff5c3fdbd278aae594f24R10
$('[id^="snippet--"]')
snippet-{componentName}-{snippetName}
In history.ajax is selector for finding all snippets on page
$('[id^="snippet--"]')
, but when any snippet is placed inside component, id is generated assnippet-{componentName}-{snippetName}
. Therefore no snippets in components are updated when back button is pressed. Code was added in https://github.com/vojtech-dobes/nette.ajax.js/commit/29acff053c0b2cc93b26723cd5f09f849076d5ce#diff-f59d393841fff5c3fdbd278aae594f24R10