javascript - How do I trigger Ratchet's push manually? -
i have link makes search. far, it's working. issue when want search done through hiting 'enter' button. so:
$('#searchedtext').on('keypress', function(e) { console.log("writed"); if ($(this).val().trim().length > 2) { if (e.which == 13) { console.log("passed condition"); app.search = $('#searchedtext').val(); // here's need trigger ratchet's push } } });
i tried change window.location - doesn't work tried trigger tap & click event - doesn't work
any ideas?
thanks in advance.
if needs solution this, found on ratchet's issues (github). if wanna trigger custom push, do:
push({url: 'yoururl+hash', transition: 'slide-out'});
regards
Comments
Post a Comment