diff --git a/mindplot/src/main/javascript/widget/LinkEditor.js b/mindplot/src/main/javascript/widget/LinkEditor.js index 52bf24b4..ddbd95d8 100644 --- a/mindplot/src/main/javascript/widget/LinkEditor.js +++ b/mindplot/src/main/javascript/widget/LinkEditor.js @@ -65,6 +65,7 @@ mindplot.widget.LinkEditor = new Class({ _buildPanel:function (model) { var result = new Element('div'); + result.setStyle("padding-top", "15px"); var form = new Element('form', {'action':'none', 'id':'linkFormId'}); // Add combo ... @@ -84,9 +85,24 @@ mindplot.widget.LinkEditor = new Class({ if (model.getValue() != null) input.value = model.getValue(); - input.setStyles({'width':'70%'}); + input.setStyles({ + width:'55%', + margin:"0px 10px" + + }); input.inject(form); + // Open Button + var openButton = new Element('input', { + type:"button", + value:$msg('OPEN_LINK') + }); + openButton.inject(form); + openButton.addEvent('click',function(){ + window.open(input.value,"_blank", "status=1,width=700,height=450,resize=1"); + }); + + // Register submit event ... form.addEvent('submit', function (event) { event.stopPropagation(); diff --git a/mindplot/src/main/resources/messages_en.properties b/mindplot/src/main/resources/messages_en.properties index b4bccfac..b7ff2de4 100644 --- a/mindplot/src/main/resources/messages_en.properties +++ b/mindplot/src/main/resources/messages_en.properties @@ -55,4 +55,5 @@ REMOVE=Remove ACCEPT=Accept CANCEL=Cancel LINK=Link +OPEN_LINK=Open URL diff --git a/mindplot/src/main/resources/messages_es.properties b/mindplot/src/main/resources/messages_es.properties index c7c78122..7e193d79 100644 --- a/mindplot/src/main/resources/messages_es.properties +++ b/mindplot/src/main/resources/messages_es.properties @@ -55,4 +55,5 @@ WRITE_YOUR_TEXT_HERE=Escribe tu nota aquĆ­ ... REMOVE=Borrar ACCEPT=Aceptar CANCEL=Cancelar -LINK=Enlace \ No newline at end of file +LINK=Enlace +OPEN_LINK=Abrir Enlace \ No newline at end of file