javascript - Ratchet remove/add data-ignore="push" -
using ratchet framework, able slidein/slideout of pages, arrive on situation have data first before slides next page. can data slide transition of page gone. there way this?
i have example anchor here:
<a href="next-link.html" data-transition="slide-in" data-want="i want data here">next link</a>
tried using,
$('a').each(function() {
`var $this = $(this);` `$this.attr('data-ignore', 'push');` `$this.click(function(e) {` `e.stoppropagation();` `//... data here $this.attr('data-want')` `$this.attr('data-ignore', '');` `});`
});
use .data()
instead:
$this.data('ignore', 'push');
and set empty
$this.data('ignore', '');
Comments
Post a Comment