message_admin (Preview) - Fix loop-around on "<<Previous" button
authorTim Otten <totten@civicrm.org>
Wed, 6 Oct 2021 07:26:58 +0000 (00:26 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 6 Oct 2021 07:28:32 +0000 (00:28 -0700)
commit144400df4b58b2324d88a0cc00a80c455da8732a
tree7fe6c99eeb5522a5885c443567ef8da6b2a928e6
parentfe9498df70e92db2a9f114442cecbe8c3d3e294d
message_admin (Preview) - Fix loop-around on "<<Previous" button

Before: If you open the new "Preview" pane and press the "<<Previous"
button, it loops to invalid position `-1`.

After: Loop-around works in both directions.
ext/message_admin/ang/crmMsgadm/Preview.js