[Libreoffice-commits] online.git: loleaflet/src
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 6 02:44:25 UTC 2019
loleaflet/src/core/Socket.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f1398335d847247b307d99ecec5e4f4123eec64e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Mon Nov 4 09:06:56 2019 -0500
Commit: Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Wed Nov 6 03:44:06 2019 +0100
leaflet: label server-id in the about box and open in new page
This adds a label 'Served by:' before the server-id in the
about box, and opens the discovery page in a new page to
preserve the document page.
Change-Id: I3f934f7e25743e400f9e38f7604b5cc7d0c850ca
Reviewed-on: https://gerrit.libreoffice.org/82022
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 6617d9ef5..19380f94e 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -276,7 +276,7 @@ L.Socket = L.Class.extend({
var idUri = this._map.options.server + this._map.options.serviceRoot + '/hosting/discovery';
idUri = idUri.replace(/^ws:/, 'http:');
idUri = idUri.replace(/^wss:/, 'https:');
- $('#loolwsd-id').html('<a href="' + idUri + '">' + this.WSDServer.Id + '</a>');
+ $('#loolwsd-id').html('Served by: <a target="_blank" href="' + idUri + '">' + this.WSDServer.Id + '</a>');
// TODO: For now we expect perfect match in protocol versions
if (this.WSDServer.Protocol !== this.ProtocolVersionNumber) {
More information about the Libreoffice-commits
mailing list