mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
add open link functionality
This commit is contained in:
parent
64ec947157
commit
12a90cc820
@ -57,7 +57,6 @@ mindplot.widget.LinkEditor = new Class({
|
|||||||
'autofocus': 'autofocus',
|
'autofocus': 'autofocus',
|
||||||
'class': 'form-control'
|
'class': 'form-control'
|
||||||
});
|
});
|
||||||
//input.css('width','70%').css('margin','0px 30px');
|
|
||||||
|
|
||||||
if (model.getValue() != null){
|
if (model.getValue() != null){
|
||||||
input.val(model.getValue());
|
input.val(model.getValue());
|
||||||
@ -71,9 +70,8 @@ mindplot.widget.LinkEditor = new Class({
|
|||||||
});
|
});
|
||||||
|
|
||||||
openButton.html($msg('OPEN_LINK')).css('margin-left', '0px');
|
openButton.html($msg('OPEN_LINK')).css('margin-left', '0px');
|
||||||
//FIXME: remove this!
|
|
||||||
openButton.click(function(){
|
openButton.click(function(){
|
||||||
alert('clicked!');
|
window.open(input.val(),"_blank", "status=1,width=700,height=450,resize=1");
|
||||||
});
|
});
|
||||||
var spanControl = $('<span class="input-group-btn"></span>').append(openButton)
|
var spanControl = $('<span class="input-group-btn"></span>').append(openButton)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user