Jump to diff number?

32 views
Skip to first unread message

MJW

unread,
Aug 23, 2020, 5:57:09 AM8/23/20
to Mergely
Hey folks,

Anyone know of a way to jump to a specific diff via the API? 

I guess what I'm looking for would be $('#mergely').mergely('scrollToDiff', <INDEX>), but looking at the docs and the source, only 'next' and 'prev' are accepted values here.

Cheers, 
Michael

Jamie Peabody

unread,
Aug 24, 2020, 3:32:03 AM8/24/20
to MJW, Mergely
There is only scrollTo (line) and scrollToDiff (prev, next).  You could maybe use diff and calculate the line number that you want to scroll to.  I know it's not ideal.

--
You received this message because you are subscribed to the Google Groups "Mergely" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mergely+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mergely/4ec9c17d-b070-412c-b76d-3cbba967e002n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages