[DE] Change hyperlink properties.
This commit is contained in:
parent
50ea7b9961
commit
815df8c93e
|
@ -2470,7 +2470,7 @@ define([
|
||||||
var menuRemoveHyperlinkTable = new Common.UI.MenuItem({
|
var menuRemoveHyperlinkTable = new Common.UI.MenuItem({
|
||||||
caption : me.removeHyperlinkText
|
caption : me.removeHyperlinkText
|
||||||
}).on('click', function(item, e){
|
}).on('click', function(item, e){
|
||||||
me.api && me.api.remove_Hyperlink();
|
me.api && me.api.remove_Hyperlink(item.hyperProps.value);
|
||||||
me.fireEvent('editcomplete', me);
|
me.fireEvent('editcomplete', me);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3004,7 +3004,7 @@ define([
|
||||||
var menuRemoveHyperlinkPara = new Common.UI.MenuItem({
|
var menuRemoveHyperlinkPara = new Common.UI.MenuItem({
|
||||||
caption : me.removeHyperlinkText
|
caption : me.removeHyperlinkText
|
||||||
}).on('click', function(item, e) {
|
}).on('click', function(item, e) {
|
||||||
me.api.remove_Hyperlink();
|
me.api.remove_Hyperlink(item.hyperProps.value);
|
||||||
me.fireEvent('editcomplete', me);
|
me.fireEvent('editcomplete', me);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ define([
|
||||||
|
|
||||||
this.options.tpl = _.template(this.template)(this.options);
|
this.options.tpl = _.template(this.template)(this.options);
|
||||||
this.api = this.options.api;
|
this.api = this.options.api;
|
||||||
|
this._originalProps = null;
|
||||||
|
|
||||||
Common.UI.Window.prototype.initialize.call(this, this.options);
|
Common.UI.Window.prototype.initialize.call(this, this.options);
|
||||||
},
|
},
|
||||||
|
@ -155,6 +156,7 @@ define([
|
||||||
this.isTextChanged = false;
|
this.isTextChanged = false;
|
||||||
|
|
||||||
me.inputTip.setValue(props.get_ToolTip());
|
me.inputTip.setValue(props.get_ToolTip());
|
||||||
|
me._originalProps = props;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -178,6 +180,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
props.put_ToolTip(me.inputTip.getValue());
|
props.put_ToolTip(me.inputTip.getValue());
|
||||||
|
props.put_InternalHyperlink(me._originalProps.get_InternalHyperlink());
|
||||||
|
|
||||||
return props;
|
return props;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue