From 815df8c93ec6687331505441026bc6957df76ad0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 15 Dec 2017 13:06:52 +0300 Subject: [PATCH] [DE] Change hyperlink properties. --- apps/documenteditor/main/app/view/DocumentHolder.js | 4 ++-- apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index f5ca0946e..2cee351a7 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -2470,7 +2470,7 @@ define([ var menuRemoveHyperlinkTable = new Common.UI.MenuItem({ caption : me.removeHyperlinkText }).on('click', function(item, e){ - me.api && me.api.remove_Hyperlink(); + me.api && me.api.remove_Hyperlink(item.hyperProps.value); me.fireEvent('editcomplete', me); }); @@ -3004,7 +3004,7 @@ define([ var menuRemoveHyperlinkPara = new Common.UI.MenuItem({ caption : me.removeHyperlinkText }).on('click', function(item, e) { - me.api.remove_Hyperlink(); + me.api.remove_Hyperlink(item.hyperProps.value); me.fireEvent('editcomplete', me); }); diff --git a/apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js b/apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js index eda22b39d..bd2efee0b 100644 --- a/apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js +++ b/apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js @@ -83,6 +83,7 @@ define([ this.options.tpl = _.template(this.template)(this.options); this.api = this.options.api; + this._originalProps = null; Common.UI.Window.prototype.initialize.call(this, this.options); }, @@ -155,6 +156,7 @@ define([ this.isTextChanged = false; me.inputTip.setValue(props.get_ToolTip()); + me._originalProps = props; } }, @@ -178,6 +180,7 @@ define([ } props.put_ToolTip(me.inputTip.getValue()); + props.put_InternalHyperlink(me._originalProps.get_InternalHyperlink()); return props; },