From 5b966d870f366bbe23bc2091807d4526e77ed506 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 24 Jun 2012 21:15:10 -0300 Subject: [PATCH] - IE does not support input type URL. Sucks. --- mindplot/src/main/javascript/widget/LinkEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindplot/src/main/javascript/widget/LinkEditor.js b/mindplot/src/main/javascript/widget/LinkEditor.js index 1e1b51b0..a37ff90f 100644 --- a/mindplot/src/main/javascript/widget/LinkEditor.js +++ b/mindplot/src/main/javascript/widget/LinkEditor.js @@ -71,13 +71,13 @@ mindplot.widget.LinkEditor = new Class({ var select = new Element('select'); select.setStyles({margin: '5px'}); new Element('option', {text:'URL'}).inject(select); - new Element('option', {text:'Mail'}).inject(select); +// new Element('option', {text:'Mail'}).inject(select); select.inject(form); // Add Input ... var input = new Element('input', { placeholder: 'http://www.example.com/', - type:'url', + type:Browser.ie ? 'text' : 'url', // IE workaround required:true, autofocus:'autofocus' });