Enable readonlyhyperlinkfo functionality for Calc.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I246b58b849ae74aa552c3fd9202c851aad6606ecpull/8057/head
parent
d5340dae84
commit
be29c99606
|
@ -1886,6 +1886,7 @@ L.CanvasTileLayer = L.Layer.extend({
|
|||
else if (textMsg.startsWith('readonlyhyperlinkclicked: ')) {
|
||||
var jsonString = textMsg.replace('readonlyhyperlinkclicked: ', '');
|
||||
var json = JSON.parse(jsonString);
|
||||
|
||||
var position = this._twipsToLatLng(json.position);
|
||||
this._showURLPopUp(position, json.link);
|
||||
}
|
||||
|
@ -3641,7 +3642,7 @@ L.CanvasTileLayer = L.Layer.extend({
|
|||
' x=' + x + ' y=' + y + ' count=' + count +
|
||||
' buttons=' + buttons + ' modifier=' + modifier);
|
||||
|
||||
if (app.file.permission === 'readonly' && type === 'buttonup' && this._docType === 'text') {
|
||||
if (app.file.permission === 'readonly' && type === 'buttonup' && (this._docType === 'text' || this._docType === 'spreadsheet')) {
|
||||
if (this._map.hyperlinkPopup !== null)
|
||||
this._closeURLPopUp();
|
||||
app.socket.sendMessage('readonlyclick x=' + x + ' y=' + y);
|
||||
|
|
Loading…
Reference in New Issue