add open link functionality

This commit is contained in:
Mariela Michalek 2014-04-19 16:38:04 -03:00
parent 64ec947157
commit 12a90cc820

View File

@ -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)