loleaflet: announce the current part after taking editing

Make sure to sync both lokit and viewers as to which
part is being edited when a previously-viewer takes
editing.

Change-Id: Ia70f647a26029447bb4360633f79233fa9596059
Reviewed-on: https://gerrit.libreoffice.org/24768
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2016-05-08 10:52:17 -04:00 committed by Ashod Nakashian
parent 702dd48f1f
commit 3cefa3c6e4

View file

@ -280,6 +280,8 @@ function onClick(id) {
else if (id === 'takeedit') {
if (!item.checked) {
map._socket.sendMessage('takeedit');
// And advertise which page we're on.
map._socket.sendMessage('setclientpart part=' + map._docLayer._selectedPart);
}
}
else if (id === 'searchprev') {