mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
add open link functionality
This commit is contained in:
parent
3ef2cd48b9
commit
a56850d214
@ -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